summaryrefslogtreecommitdiffstats
path: root/usr.bin/find/function.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-03-21 21:56:05 +0000
committermarkm <markm@FreeBSD.org>2002-03-21 21:56:05 +0000
commit5da7065f3d4fe05102865926b09192cffa03a251 (patch)
treee3d885c77e6bf6e7ca5fd176e325c34b01874abc /usr.bin/find/function.c
parent00281942195721d9e90e5686c6d91bac28798cfd (diff)
downloadFreeBSD-src-5da7065f3d4fe05102865926b09192cffa03a251.zip
FreeBSD-src-5da7065f3d4fe05102865926b09192cffa03a251.tar.gz
Restructure for own parsedate (replacement for get_date from CVS).
Fix up parsedate.y for WARNS=4. Reviewd by: bde (except for parsedate.y diffs)
Diffstat (limited to 'usr.bin/find/function.c')
-rw-r--r--usr.bin/find/function.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c
index 34e12c1..78a93ce 100644
--- a/usr.bin/find/function.c
+++ b/usr.bin/find/function.c
@@ -69,7 +69,6 @@ static PLAN *palloc(OPTION *);
static long long find_parsenum(PLAN *, const char *, char *, char *);
static long long find_parsetime(PLAN *, const char *, char *);
static char *nextarg(OPTION *, char ***);
-time_t get_date(char *, struct timeb *);
#define COMPARE(a, b) do { \
switch (plan->flags & F_ELG_MASK) { \
@@ -999,7 +998,7 @@ c_newer(option, argvp)
new = palloc(option);
/* compare against what */
if (option->flags & F_TIME2_T) {
- new->t_data = get_date(fn_or_tspec, (struct timeb *) 0);
+ new->t_data = parsedate(fn_or_tspec, (struct timeb *) 0);
if (new->t_data == (time_t) -1)
errx(1, "Can't parse date/time: %s", fn_or_tspec);
} else {
OpenPOWER on IntegriCloud