From: Sami Kerola Date: Thu, 12 Nov 2020 23:58:59 +0000 (+0000) Subject: login: move timeout from global to local scope X-Git-Tag: v2.37-rc1~256 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b4d75fae55b4a5ff8f65df8551c56cf1eeb9b08;p=thirdparty%2Futil-linux.git login: move timeout from global to local scope Signed-off-by: Sami Kerola --- diff --git a/login-utils/login.c b/login-utils/login.c index 0bf64f42cb..b15b0ee18e 100644 --- a/login-utils/login.c +++ b/login-utils/login.c @@ -151,7 +151,6 @@ struct login_context { * This bounds the time given to login. Not a define, so it can * be patched on machines where it's too small. */ -static unsigned int timeout = LOGIN_TIMEOUT; static int child_pid = 0; static volatile sig_atomic_t got_sig = 0; static char *timeout_msg; @@ -1260,6 +1259,7 @@ int main(int argc, char **argv) char *buff; int childArgc = 0; int retcode; + unsigned int timeout; struct sigaction act; struct passwd *pwd; static const int wanted_fds[] = {