summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ngctl/dot.c
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2007-02-06 08:48:28 +0000
committerkevlo <kevlo@FreeBSD.org>2007-02-06 08:48:28 +0000
commit5a57d3e796ffd97cbe691cc76f89dde9f18d3ba7 (patch)
treeb760551e3d33fadb07d26db7ad8ba4be639196c8 /usr.sbin/ngctl/dot.c
parent3a4cc1b454c5ab12ed138c2d9e5d2f4653369cef (diff)
downloadFreeBSD-src-5a57d3e796ffd97cbe691cc76f89dde9f18d3ba7.zip
FreeBSD-src-5a57d3e796ffd97cbe691cc76f89dde9f18d3ba7.tar.gz
getopt(3) returns -1, not EOF.
Diffstat (limited to 'usr.sbin/ngctl/dot.c')
-rw-r--r--usr.sbin/ngctl/dot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ngctl/dot.c b/usr.sbin/ngctl/dot.c
index 4b4fc76..bd4673f 100644
--- a/usr.sbin/ngctl/dot.c
+++ b/usr.sbin/ngctl/dot.c
@@ -70,7 +70,7 @@ DotCmd(int ac, char **av)
/* Get options */
optind = 1;
- while ((ch = getopt(ac, av, "")) != EOF) {
+ while ((ch = getopt(ac, av, "")) != -1) {
switch (ch) {
case '?':
default:
OpenPOWER on IntegriCloud