diff options
author | millert <millert@openbsd.org> | 1997-01-15 23:40:20 +0000 |
---|---|---|
committer | millert <millert@openbsd.org> | 1997-01-15 23:40:20 +0000 |
commit | 72799b18e5d7fe7a63e4137ee58a606d3817781d (patch) | |
tree | 698a9ab6fd99eb5b6c651ec199bb17cca9178980 /usr.sbin/ac | |
parent | sync with NetBSD 970112 -moj (diff) | |
download | wireguard-openbsd-72799b18e5d7fe7a63e4137ee58a606d3817781d.tar.xz wireguard-openbsd-72799b18e5d7fe7a63e4137ee58a606d3817781d.zip |
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'usr.sbin/ac')
-rw-r--r-- | usr.sbin/ac/ac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c index 96a14372d40..8bc2c1ac7b9 100644 --- a/usr.sbin/ac/ac.c +++ b/usr.sbin/ac/ac.c @@ -14,7 +14,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: ac.c,v 1.2 1996/08/29 03:32:19 deraadt Exp $"; +static char rcsid[] = "$Id: ac.c,v 1.3 1997/01/15 23:43:44 millert Exp $"; #endif #include <sys/types.h> @@ -226,7 +226,7 @@ main(argc, argv) int c; fp = NULL; - while ((c = getopt(argc, argv, "Dc:dpt:w:")) != EOF) { + while ((c = getopt(argc, argv, "Dc:dpt:w:")) != -1) { switch (c) { #ifdef DEBUG case 'D': |