summaryrefslogtreecommitdiff
path: root/usr.sbin/named/dnsquery/dnsquery.c
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2001-10-24 13:06:37 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2001-10-24 13:06:37 +0000
commit9531af194e3d30d1d195cd6cee8ddf4e13f5e668 (patch)
tree50e73d1a354adfd017b644ec37a53be2492d04a7 /usr.sbin/named/dnsquery/dnsquery.c
parenta8300e86e7f5e26893c1db0e382f2f2ce983954c (diff)
getopt(3) returns -1 when out of args, not EOF.
millert@ ok
Diffstat (limited to 'usr.sbin/named/dnsquery/dnsquery.c')
-rw-r--r--usr.sbin/named/dnsquery/dnsquery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/named/dnsquery/dnsquery.c b/usr.sbin/named/dnsquery/dnsquery.c
index 26ccf6bda5c..66b82311e53 100644
--- a/usr.sbin/named/dnsquery/dnsquery.c
+++ b/usr.sbin/named/dnsquery/dnsquery.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dnsquery.c,v 1.5 2000/02/01 03:24:02 deraadt Exp $ */
+/* $OpenBSD: dnsquery.c,v 1.6 2001/10/24 13:06:36 mpech Exp $ */
#include <stdio.h>
#include <sys/types.h>
@@ -43,7 +43,7 @@ char *argv[];
}
/* handle args */
- while ((c = getopt(argc, argv, "c:dh:n:p:r:st:u:v")) != EOF) {
+ while ((c = getopt(argc, argv, "c:dh:n:p:r:st:u:v")) != -1) {
switch (c) {
case 'r' : _res.retry = atoi(optarg);