diff options
| author | 1999-05-23 17:19:21 +0000 | |
|---|---|---|
| committer | 1999-05-23 17:19:21 +0000 | |
| commit | 8781354e23603538d78ff26287c3a0bea93c99d7 (patch) | |
| tree | 986272d1ee0d5b5696f1a921565988c791fa730e /usr.sbin/cron/crontab.c | |
| parent | .Nm macros should have an argument in SYNOPSIS section (diff) | |
| download | wireguard-openbsd-8781354e23603538d78ff26287c3a0bea93c99d7.tar.xz wireguard-openbsd-8781354e23603538d78ff26287c3a0bea93c99d7.zip | |
getopt(3) returns -1, not EOF
Diffstat (limited to 'usr.sbin/cron/crontab.c')
| -rw-r--r-- | usr.sbin/cron/crontab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c index b354d362319..685e1bfb1e5 100644 --- a/usr.sbin/cron/crontab.c +++ b/usr.sbin/cron/crontab.c @@ -16,7 +16,7 @@ */ #if !defined(lint) && !defined(LINT) -static char rcsid[] = "$Id: crontab.c,v 1.12 1998/07/12 08:23:47 deraadt Exp $"; +static char rcsid[] = "$Id: crontab.c,v 1.13 1999/05/23 17:19:23 aaron Exp $"; #endif /* crontab - install and manage per-user crontab files @@ -154,7 +154,7 @@ parse_args(argc, argv) Filename[0] = '\0'; Option = opt_unknown; - while (EOF != (argch = getopt(argc, argv, getoptarg))) { + while (-1 != (argch = getopt(argc, argv, getoptarg))) { switch (argch) { #if DEBUGGING case 'x': |
