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/vipw | |
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/vipw')
-rw-r--r-- | usr.sbin/vipw/vipw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/vipw/vipw.c b/usr.sbin/vipw/vipw.c index 4b603e8d294..6308bc92299 100644 --- a/usr.sbin/vipw/vipw.c +++ b/usr.sbin/vipw/vipw.c @@ -67,7 +67,7 @@ main(argc, argv) struct stat begin, end; int ch; - while ((ch = getopt(argc, argv, "")) != EOF) { + while ((ch = getopt(argc, argv, "")) != -1) { switch (ch) { case '?': default: |