summaryrefslogtreecommitdiffstats
path: root/usr.bin/find
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/find')
-rw-r--r--usr.bin/find/function.c9
-rw-r--r--usr.bin/find/ls.c3
2 files changed, 5 insertions, 7 deletions
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 <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <tzfile.h>
#include <unistd.h>
#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 <stdio.h>
#include <string.h>
#include <time.h>
-#include <tzfile.h>
#include <unistd.h>
#include <utmp.h>
@@ -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]);
OpenPOWER on IntegriCloud