diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2007-09-01 02:25:27 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2007-09-01 02:25:27 +0000 |
commit | 3a27abd9c7369dd4d75db1ad4b7dcda4cc1579d1 (patch) | |
tree | 7d29b4abd411c067a5180f0ffbf1994ce8684d7c /usr.sbin/cron/crontab.c | |
parent | a91c7b12049b201657e775fb23f4ba66389f8ab5 (diff) |
Include err.h and remove unused variables.
OK millert.
Diffstat (limited to 'usr.sbin/cron/crontab.c')
-rw-r--r-- | usr.sbin/cron/crontab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c index 27d9893a84f..c058b16f463 100644 --- a/usr.sbin/cron/crontab.c +++ b/usr.sbin/cron/crontab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crontab.c,v 1.52 2007/08/31 23:14:21 ray Exp $ */ +/* $OpenBSD: crontab.c,v 1.53 2007/09/01 02:25:26 ray Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -21,13 +21,15 @@ * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -static char const rcsid[] = "$OpenBSD: crontab.c,v 1.52 2007/08/31 23:14:21 ray Exp $"; +static char const rcsid[] = "$OpenBSD: crontab.c,v 1.53 2007/09/01 02:25:26 ray Exp $"; /* crontab - install and manage per-user crontab files * vix 02may87 [RCS has the rest of the log] * vix 26jan87 [original] */ +#include <err.h> + #define MAIN_PROGRAM #include "cron.h" @@ -286,8 +288,6 @@ edit_cmd(void) { struct stat statbuf, xstatbuf; struct timespec mtimespec; struct timeval tv[2]; - WAIT_T waiter; - PID_T pid, xpid; log_it(RealUser, Pid, "BEGIN EDIT", User); if (snprintf(n, sizeof n, "%s/%s", SPOOL_DIR, User) >= sizeof(n)) { |