From: Tobias Stoeckmann Date: Tue, 19 Sep 2023 18:42:03 +0000 (+0200) Subject: login: move comment X-Git-Tag: v2.39.3~57 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=be3f1712ee2e1e43d9b82b7cf4987c8a609a81ef;p=thirdparty%2Futil-linux.git login: move comment In 0b4d75fae55b4a5ff8f65df8551c56cf1eeb9b08 the variable "timeout" has been moved from global to local scope, but its comment was not. Signed-off-by: Tobias Stoeckmann --- diff --git a/login-utils/login.c b/login-utils/login.c index 74bdf38a42..a8a76f3885 100644 --- a/login-utils/login.c +++ b/login-utils/login.c @@ -138,10 +138,6 @@ struct login_context { keep_env:1; /* login -p */ }; -/* - * This bounds the time given to login. Not a define, so it can - * be patched on machines where it's too small. - */ static int child_pid = 0; static volatile sig_atomic_t got_sig = 0; static char *timeout_msg; @@ -1301,6 +1297,10 @@ static void initialize(int argc, char **argv, struct login_context *cxt) {NULL, 0, NULL, 0} }; + /* + * This bounds the time given to login. Not a define, so it can + * be patched on machines where it's too small. + */ timeout = (unsigned int)getlogindefs_num("LOGIN_TIMEOUT", LOGIN_TIMEOUT); /* TRANSLATORS: The standard value for %u is 60. */