From: Tobias Stoeckmann Date: Tue, 19 Sep 2023 18:42:03 +0000 (+0200) Subject: login: move comment X-Git-Tag: v2.40-rc1~236^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79af9d7583d630814f7bcb81139993c1371cb277;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 129f3cfa2e..8294a522af 100644 --- a/login-utils/login.c +++ b/login-utils/login.c @@ -139,10 +139,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; @@ -1334,6 +1330,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. */