summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-01-15 23:40:20 +0000
committermillert <millert@openbsd.org>1997-01-15 23:40:20 +0000
commit72799b18e5d7fe7a63e4137ee58a606d3817781d (patch)
tree698a9ab6fd99eb5b6c651ec199bb17cca9178980 /lib
parentsync with NetBSD 970112 -moj (diff)
downloadwireguard-openbsd-72799b18e5d7fe7a63e4137ee58a606d3817781d.tar.xz
wireguard-openbsd-72799b18e5d7fe7a63e4137ee58a606d3817781d.zip
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/time/zic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/time/zic.c b/lib/libc/time/zic.c
index 98e063e479f..d50d1144b08 100644
--- a/lib/libc/time/zic.c
+++ b/lib/libc/time/zic.c
@@ -2,7 +2,7 @@
#if 0
static char elsieid[] = "@(#)zic.c 7.80";
#else
-static char rcsid[] = "$OpenBSD: zic.c,v 1.5 1997/01/14 03:16:58 millert Exp $";
+static char rcsid[] = "$OpenBSD: zic.c,v 1.6 1997/01/15 23:40:55 millert Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -478,7 +478,7 @@ char * argv[];
(void) textdomain(TZ_DOMAIN);
#endif /* HAVE_GETTEXT - 0 */
progname = argv[0];
- while ((c = getopt(argc, argv, "d:l:p:L:vsy:")) != EOF)
+ while ((c = getopt(argc, argv, "d:l:p:L:vsy:")) != -1)
switch (c) {
default:
usage();