]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/failure.c: failprint(): Remove dead code
authorAlejandro Colomar <alx@kernel.org>
Mon, 20 May 2024 15:34:30 +0000 (17:34 +0200)
committerSerge Hallyn <serge@hallyn.com>
Tue, 2 Jul 2024 02:40:11 +0000 (21:40 -0500)
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 <alx@kernel.org>
lib/failure.c

index 22acc231a00ba35b10aa79927329cec21cc8b00e..298baf9d30a53ca42841f6fd16b278de2530f5a8 100644 (file)
@@ -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.