ac: Remove set but not used variable.
Reported by: clang
This commit is contained in:
+1
-3
@@ -408,17 +408,15 @@ ac(const char *file)
|
||||
struct utmpx *usr, usht;
|
||||
struct tm *ltm;
|
||||
struct timeval prev_secs, ut_timecopy, secs, clock_shift, now;
|
||||
int day, rfound;
|
||||
int day;
|
||||
|
||||
day = -1;
|
||||
timerclear(&prev_secs); /* Minimum acceptable date == 1970. */
|
||||
timerclear(&secs);
|
||||
timerclear(&clock_shift);
|
||||
rfound = 0;
|
||||
if (setutxdb(UTXDB_LOG, file) != 0)
|
||||
err(1, "%s", file);
|
||||
while ((usr = getutxent()) != NULL) {
|
||||
rfound++;
|
||||
ut_timecopy = usr->ut_tv;
|
||||
/* Don't let the time run backwards. */
|
||||
if (timercmp(&ut_timecopy, &prev_secs, <))
|
||||
|
||||
Reference in New Issue
Block a user