From fc1f6c1d76677a4e8d2c39e5fa7be3716841930e Mon Sep 17 00:00:00 2001 From: wollman Date: Mon, 7 Aug 1995 19:17:46 +0000 Subject: Delete bogus referneces to timezone code internal header file `tzfile.h', which is no longer bogusly installed in /usr/include. --- usr.bin/find/function.c | 9 ++++----- usr.bin/find/ls.c | 3 +-- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'usr.bin/find') diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index 72a4e74..6bd85b5 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -53,7 +53,6 @@ static char sccsid[] = "@(#)function.c 8.6 (Berkeley) 4/1/94"; #include #include #include -#include #include #include "find.h" @@ -140,7 +139,7 @@ f_atime(plan, entry) extern time_t now; COMPARE((now - entry->fts_statp->st_atime + - SECSPERDAY - 1) / SECSPERDAY, plan->t_data); + 86400 - 1) / 86400, plan->t_data); } PLAN * @@ -170,7 +169,7 @@ f_ctime(plan, entry) extern time_t now; COMPARE((now - entry->fts_statp->st_ctime + - SECSPERDAY - 1) / SECSPERDAY, plan->t_data); + 86400 - 1) / 86400, plan->t_data); } PLAN * @@ -577,8 +576,8 @@ f_mtime(plan, entry) { extern time_t now; - COMPARE((now - entry->fts_statp->st_mtime + SECSPERDAY - 1) / - SECSPERDAY, plan->t_data); + COMPARE((now - entry->fts_statp->st_mtime + 86400 - 1) / + 86400, plan->t_data); } PLAN * diff --git a/usr.bin/find/ls.c b/usr.bin/find/ls.c index dd51f97..929ef79 100644 --- a/usr.bin/find/ls.c +++ b/usr.bin/find/ls.c @@ -43,7 +43,6 @@ static char sccsid[] = "@(#)ls.c 8.1 (Berkeley) 6/6/93"; #include #include #include -#include #include #include @@ -90,7 +89,7 @@ printtime(ftime) for (i = 4; i < 11; ++i) (void)putchar(longstring[i]); -#define SIXMONTHS ((DAYSPERNYEAR / 2) * SECSPERDAY) +#define SIXMONTHS ((365 / 2) * 86400) if (ftime + SIXMONTHS > time((time_t *)NULL)) for (i = 11; i < 16; ++i) (void)putchar(longstring[i]); -- cgit v1.1