diff --git a/timeoutd.c b/timeoutd.c index 5f94509..f8c6cf8 100644 --- a/timeoutd.c +++ b/timeoutd.c @@ -94,7 +94,6 @@ void bailout(); char chk_timeout(); void logoff_msg(); void killit(); -int getdisc(); int chk_xsession(); /* seppy: is it a X-Session? */ void killit_xsession(); /* seppy: kill the X-Session */ int chk_ssh(pid_t pid); /* seppy: check if user is logged in via ssh (we have to @@ -739,7 +738,6 @@ int session; char usermatch = 0; char groupmatch = 0; char **p; - int disc; configline = 0; @@ -784,15 +782,12 @@ int session; config[configline]->sessmax, daytime, config[configline]->daymax, config[configline]->warntime); #endif - disc = getdisc(dev, host); - limit_type = NOLOGINMSG; if (!config[configline]->login_allowed) return NOLOGIN; limit_type = IDLEMSG; - if (disc == N_TTY && config[configline]->idlemax > 0 - && idle >= config[configline]->idlemax) + if (config[configline]->idlemax > 0 && idle >= config[configline]->idlemax) return IDLEMAX; limit_type = SESSMSG; @@ -1053,17 +1048,6 @@ int signum; signal(SIGCHLD, reapchild); } -int getdisc(d, host) -char *d; -char *host; -{ - int fd; - int disc; - - return N_TTY; - /* TODO: add an actual portable way of getting terminal discipline */ -} - int chk_xsession(dev, host) /* returns TIMEOUTD_XSESSION_{REMOTE,LOCAL,NONE} when dev and host seem to be a xSession. */ char *dev, *host; {