summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/session.c b/session.c
index 0aa5138c6..0b31d5f19 100644
--- a/session.c
+++ b/session.c
@@ -150,7 +150,6 @@ char *original_command = NULL;
150/* data */ 150/* data */
151#define MAX_SESSIONS 10 151#define MAX_SESSIONS 10
152Session sessions[MAX_SESSIONS]; 152Session sessions[MAX_SESSIONS];
153static int num_used_sessions;
154 153
155#ifdef WITH_AIXAUTHENTICATE 154#ifdef WITH_AIXAUTHENTICATE
156/* AIX's lastlogin message, set in auth1.c */ 155/* AIX's lastlogin message, set in auth1.c */
@@ -1438,7 +1437,6 @@ session_new(void)
1438 sessions[i].used = 0; 1437 sessions[i].used = 0;
1439 sessions[i].self = i; 1438 sessions[i].self = i;
1440 } 1439 }
1441 num_used_sessions = 0;
1442 did_init = 1; 1440 did_init = 1;
1443 } 1441 }
1444 for(i = 0; i < MAX_SESSIONS; i++) { 1442 for(i = 0; i < MAX_SESSIONS; i++) {
@@ -1457,8 +1455,7 @@ session_new(void)
1457 s->auth_proto = NULL; 1455 s->auth_proto = NULL;
1458 s->used = 1; 1456 s->used = 1;
1459 s->pw = NULL; 1457 s->pw = NULL;
1460 num_used_sessions++; 1458 debug("session_new: session %d", i);
1461 debug("session_new: session %d (%d used)", i, num_used_sessions);
1462 return s; 1459 return s;
1463 } 1460 }
1464 } 1461 }
@@ -1871,7 +1868,6 @@ session_close(Session *s)
1871 session_pty_cleanup(s); 1868 session_pty_cleanup(s);
1872 session_free(s); 1869 session_free(s);
1873 session_proctitle(s); 1870 session_proctitle(s);
1874 num_used_sessions--;
1875} 1871}
1876 1872
1877void 1873void
@@ -1917,11 +1913,6 @@ session_close_by_channel(int id, void *arg)
1917 } 1913 }
1918} 1914}
1919 1915
1920int used_sessions(void)
1921{
1922 return(num_used_sessions);
1923}
1924
1925char * 1916char *
1926session_tty_list(void) 1917session_tty_list(void)
1927{ 1918{