* src/logoutd.c: Ignore return value of time() when use with a

non NULL argument.
This commit is contained in:
nekral-guest 2008-06-13 20:34:46 +00:00
parent 47210d9a1a
commit 2fa4cedb1e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/logoutd.c: Ignore return value of time() when use with a
non NULL argument.
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
* src/pwconv.c: Use SHADOW_SP_FLAG_UNSET for the initial

View File

@ -77,7 +77,7 @@ static int check_login (const struct utmp *ut)
strncpy (user, ut->ut_user, sizeof (ut->ut_user));
user[sizeof (ut->ut_user)] = '\0';
time (&now);
(void) time (&now);
/*
* Check if they are allowed to be logged in right now.