summaryrefslogtreecommitdiffstats
path: root/usr.bin/vacation
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-08-07 19:17:46 +0000
committerwollman <wollman@FreeBSD.org>1995-08-07 19:17:46 +0000
commitfc1f6c1d76677a4e8d2c39e5fa7be3716841930e (patch)
tree413738746625eee30af858d100ea794582067fa4 /usr.bin/vacation
parentc87e4ea046fafb0b07c7ac3335948b0743fed8b4 (diff)
downloadFreeBSD-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/vacation')
-rw-r--r--usr.bin/vacation/vacation.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/vacation/vacation.c b/usr.bin/vacation/vacation.c
index 025eb98..ae549c8 100644
--- a/usr.bin/vacation/vacation.c
+++ b/usr.bin/vacation/vacation.c
@@ -54,7 +54,6 @@ static char sccsid[] = "@(#)vacation.c 8.2 (Berkeley) 1/26/94";
#include <db.h>
#include <time.h>
#include <syslog.h>
-#include <tzfile.h>
#include <errno.h>
#include <unistd.h>
#include <stdio.h>
@@ -114,7 +113,7 @@ main(argc, argv)
break;
case 'r':
if (isdigit(*optarg)) {
- interval = atol(optarg) * SECSPERDAY;
+ interval = atol(optarg) * 86400;
if (interval < 0)
usage();
}
@@ -319,7 +318,7 @@ recent()
key.data = VIT;
key.size = sizeof(VIT);
if ((db->get)(db, &key, &data, 0))
- next = SECSPERDAY * DAYSPERWEEK;
+ next = 86400 * 7;
else
bcopy(data.data, &next, sizeof(next));
OpenPOWER on IntegriCloud