From bdf00dca44e12d721935648200f169c5c731b008 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Mon, 20 May 2024 17:34:30 +0200 Subject: [PATCH] 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 --- lib/failure.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/failure.c b/lib/failure.c index 22acc231..298baf9d 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.