diff options
author | 2007-09-01 02:25:26 +0000 | |
---|---|---|
committer | 2007-09-01 02:25:26 +0000 | |
commit | 1813c86f309447979ed065a41c324bdf8a231eee (patch) | |
tree | eaeb07387e7967e26b8057a246271460a2e4b8d8 /usr.sbin/cron/crontab.c | |
parent | Copy editit() from sendbug, synchronizing editor calling code. (diff) | |
download | wireguard-openbsd-1813c86f309447979ed065a41c324bdf8a231eee.tar.xz wireguard-openbsd-1813c86f309447979ed065a41c324bdf8a231eee.zip |
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)) { |