From: Karel Zak Date: Fri, 12 Feb 2016 10:21:50 +0000 (+0100) Subject: sulogin: keep initialization more robust X-Git-Tag: v2.28-rc1~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0fe12aeb4ac2f3f20f82664cd2f50ba35c8ba89;p=thirdparty%2Futil-linux.git sulogin: keep initialization more robust Signed-off-by: Karel Zak --- diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c index 4b1e44b070..643712ff56 100644 --- a/login-utils/sulogin.c +++ b/login-utils/sulogin.c @@ -857,7 +857,7 @@ int main(int argc, char **argv) struct console *con; char *tty = NULL; struct passwd *pwd; - struct timespec sigwait = {0, 50000000}; + struct timespec sigwait = { .tv_sec = 0, .tv_nsec = 50000000 }; siginfo_t status = {}; sigset_t set = {}; int c, reconnect = 0;