diff options
author | wollman <wollman@FreeBSD.org> | 1995-08-07 19:17:46 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-08-07 19:17:46 +0000 |
commit | fc1f6c1d76677a4e8d2c39e5fa7be3716841930e (patch) | |
tree | 413738746625eee30af858d100ea794582067fa4 /usr.bin/finger | |
parent | c87e4ea046fafb0b07c7ac3335948b0743fed8b4 (diff) | |
download | FreeBSD-src-fc1f6c1d76677a4e8d2c39e5fa7be3716841930e.zip FreeBSD-src-fc1f6c1d76677a4e8d2c39e5fa7be3716841930e.tar.gz |
Delete bogus referneces to timezone code internal header file `tzfile.h',
which is no longer bogusly installed in /usr/include.
Diffstat (limited to 'usr.bin/finger')
-rw-r--r-- | usr.bin/finger/lprint.c | 3 | ||||
-rw-r--r-- | usr.bin/finger/sprint.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/finger/lprint.c b/usr.bin/finger/lprint.c index 51e0f96..28a9be7 100644 --- a/usr.bin/finger/lprint.c +++ b/usr.bin/finger/lprint.c @@ -43,7 +43,6 @@ static char sccsid[] = "@(#)lprint.c 8.1 (Berkeley) 6/6/93"; #include <sys/time.h> #include <fcntl.h> #include <time.h> -#include <tzfile.h> #include <db.h> #include <pwd.h> #include <utmp.h> @@ -207,7 +206,7 @@ lprint(pn) tp = localtime(&w->loginat); t = asctime(tp); tzn = tp->tm_zone; - if (now - w->loginat > SECSPERDAY * DAYSPERNYEAR / 2) + if (now - w->loginat > 86400 * 365 / 2) cpr = printf("Last login %.16s %.4s (%s) on %s", t, t + 20, tzn, w->tty); diff --git a/usr.bin/finger/sprint.c b/usr.bin/finger/sprint.c index a6481cd..fdb3b6c 100644 --- a/usr.bin/finger/sprint.c +++ b/usr.bin/finger/sprint.c @@ -41,7 +41,6 @@ static char sccsid[] = "@(#)sprint.c 8.1 (Berkeley) 6/6/93"; #include <sys/types.h> #include <sys/time.h> #include <time.h> -#include <tzfile.h> #include <db.h> #include <pwd.h> #include <errno.h> @@ -117,6 +116,9 @@ sflag_print() } else (void)printf(" * "); p = ctime(&w->loginat); +#define SECSPERDAY 86400 +#define DAYSPERWEEK 7 +#define DAYSPERNYEAR 365 if (now - w->loginat < SECSPERDAY * (DAYSPERWEEK - 1)) (void)printf("%.3s ", p); else |