diff options
author | dillon <dillon@FreeBSD.org> | 2001-10-29 00:36:01 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-10-29 00:36:01 +0000 |
commit | 1b3d4db687e9d0cc8323490e7209c69b93c1e273 (patch) | |
tree | 78081699575afb3454f76c044f1451eded840dd4 /usr.sbin/ac | |
parent | d9ab71bc3b3047b5fa806348f079a175659374bd (diff) | |
download | FreeBSD-src-1b3d4db687e9d0cc8323490e7209c69b93c1e273.zip FreeBSD-src-1b3d4db687e9d0cc8323490e7209c69b93c1e273.tar.gz |
localtime() was being called with an int-pointer due to recent utmp
fixes.
Diffstat (limited to 'usr.sbin/ac')
-rw-r--r-- | usr.sbin/ac/ac.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c index b82a7e7..1543568 100644 --- a/usr.sbin/ac/ac.c +++ b/usr.sbin/ac/ac.c @@ -473,7 +473,8 @@ ac(fp) if (!FirstTime) FirstTime = usr.ut_time; if (Flags & AC_D) { - ltm = localtime(&usr.ut_time); + time_t t = int_to_time(usr.ut_time); + ltm = localtime(&t); if (day >= 0 && day != ltm->tm_yday) { day = ltm->tm_yday; /* @@ -524,7 +525,8 @@ ac(fp) (void)strcpy(usr.ut_line, "~"); if (Flags & AC_D) { - ltm = localtime(&usr.ut_time); + time_t t = int_to_time(usr.ut_time); + ltm = localtime(&t); if (day >= 0 && day != ltm->tm_yday) { /* * print yesterday's total |