Date: Tue, 20 Jun 2023 16:29:27 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: def653cd6c38 - main - ac: Remove set but not used variable. Message-ID: <202306201629.35KGTRWZ045261@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=def653cd6c38e17ab7bac1b13d34dd7f5f584832 commit def653cd6c38e17ab7bac1b13d34dd7f5f584832 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-06-20 16:29:00 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-06-20 16:29:00 +0000 ac: Remove set but not used variable. Reported by: clang --- usr.sbin/ac/ac.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c index 1372b175f116..8d75c4ba1013 100644 --- a/usr.sbin/ac/ac.c +++ b/usr.sbin/ac/ac.c @@ -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, <))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306201629.35KGTRWZ045261>