From 87ba7821069eda5606e7e37f505677c10070a7b6 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Fri, 13 Jun 2008 21:30:09 +0000 Subject: [PATCH] * src/sulogin.c: Ignore the return value of signal(). --- ChangeLog | 4 ++++ src/sulogin.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7b464e7d..ab5b0962 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-06-13 Nicolas François + + * src/sulogin.c: Ignore the return value of signal(). + 2008-06-13 Nicolas François * src/groups.c: sys_ngroups is only used when HAVE_GETGROUPS is diff --git a/src/sulogin.c b/src/sulogin.c index ef66a8d0..b129202c 100644 --- a/src/sulogin.c +++ b/src/sulogin.c @@ -172,8 +172,8 @@ static RETSIGTYPE catch_signals (unused int sig) (void) strcpy (name, "root"); /* KLUDGE!!! */ - signal (SIGALRM, catch_signals); /* exit if the timer expires */ - alarm (ALARM); /* only wait so long ... */ + (void) signal (SIGALRM, catch_signals); /* exit if the timer expires */ + (void) alarm (ALARM); /* only wait so long ... */ while (true) { /* repeatedly get login/password pairs */ pw_entry (name, &pwent); /* get entry from password file */ @@ -231,7 +231,7 @@ static RETSIGTYPE catch_signals (unused int sig) } strzero (pass); (void) alarm (0); - signal (SIGALRM, SIG_DFL); + (void) signal (SIGALRM, SIG_DFL); environ = newenvp; /* make new environment active */ puts (_("Entering System Maintenance Mode"));