ac: Remove set but not used variable.

Reported by:	clang
This commit is contained in:
John Baldwin
2023-06-20 09:29:00 -07:00
parent 8457b7f426
commit def653cd6c
+1 -3
View File
@@ -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, <))