From 2fa4cedb1e0301c81bf7826ee7c74b69208132f5 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Fri, 13 Jun 2008 20:34:46 +0000 Subject: [PATCH] * src/logoutd.c: Ignore return value of time() when use with a non NULL argument. --- ChangeLog | 5 +++++ src/logoutd.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 985f516a..a1a414ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-06-13 Nicolas François + + * src/logoutd.c: Ignore return value of time() when use with a + non NULL argument. + 2008-06-13 Nicolas François * src/pwconv.c: Use SHADOW_SP_FLAG_UNSET for the initial diff --git a/src/logoutd.c b/src/logoutd.c index e00af4b6..6a54ceaf 100644 --- a/src/logoutd.c +++ b/src/logoutd.c @@ -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.