aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/cron
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2012-09-01 14:45:15 +0000
committerEd Schouten <ed@FreeBSD.org>2012-09-01 14:45:15 +0000
commit902d9eafbf66c52f8513bc38f4d0c8063c0b8a03 (patch)
tree496a0b9a3b14c27d50e1ae3b28265ecf5c2023f2 /usr.sbin/cron
parentaeb99b567a54f0ce25c0cf33eb758f15add4580c (diff)
Notes
Diffstat (limited to 'usr.sbin/cron')
-rw-r--r--usr.sbin/cron/crontab/crontab.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/cron/crontab/crontab.c b/usr.sbin/cron/crontab/crontab.c
index 69c460633443..1ac81b029545 100644
--- a/usr.sbin/cron/crontab/crontab.c
+++ b/usr.sbin/cron/crontab/crontab.c
@@ -627,9 +627,8 @@ static void
poke_daemon() {
#ifdef USE_UTIMES
struct timeval tvs[2];
- struct timezone tz;
- (void) gettimeofday(&tvs[0], &tz);
+ (void)gettimeofday(&tvs[0], NULL);
tvs[1] = tvs[0];
if (utimes(SPOOL_DIR, tvs) < OK) {
warn("can't update mtime on spooldir %s", SPOOL_DIR);