From 79af9d7583d630814f7bcb81139993c1371cb277 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Tue, 19 Sep 2023 20:42:03 +0200 Subject: [PATCH] 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 --- login-utils/login.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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. */ -- 2.47.3