From: Alejandro Colomar Date: Mon, 20 May 2024 15:34:30 +0000 (+0200) Subject: lib/failure.c: failprint(): Remove dead code X-Git-Tag: 4.17.0-rc1~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdf00dca44e12d721935648200f169c5c731b008;p=thirdparty%2Fshadow.git lib/failure.c: failprint(): Remove dead code This should have gone into the #else'd branch in 8451bed8b06d, and should have been removed in 3e602b58a2aa. Fixes: 8451bed8b06d ("[svn-upgrade] Integrating new upstream version, shadow (4.0.13)") Fixes: 3e602b58a2aa ("Remove HAVE_STRFTIME ifdefs") Signed-off-by: Alejandro Colomar --- diff --git a/lib/failure.c b/lib/failure.c index 22acc231a..298baf9d3 100644 --- a/lib/failure.c +++ b/lib/failure.c @@ -242,14 +242,12 @@ void failprint (const struct faillog *fail) struct tm *tp; char lasttimeb[256]; char *lasttime = lasttimeb; - time_t NOW; if (0 == fail->fail_cnt) { return; } tp = localtime (&(fail->fail_time)); - (void) time (&NOW); /* * Print all information we have.