summaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv/mknetid
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-01-15 23:44:39 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-01-15 23:44:39 +0000
commit552d265b6ced1e56d31f20f16a7fe9ae818d568b (patch)
tree219a59b7e7a5ef53ddfc66cdc38e73e3f79258c8 /usr.sbin/ypserv/mknetid
parentbf6413046b73005ecca3f5352c8711d00a6d00b9 (diff)
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'usr.sbin/ypserv/mknetid')
-rw-r--r--usr.sbin/ypserv/mknetid/mknetid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/mknetid/mknetid.c b/usr.sbin/ypserv/mknetid/mknetid.c
index e905ca6b972..46b859db8bc 100644
--- a/usr.sbin/ypserv/mknetid/mknetid.c
+++ b/usr.sbin/ypserv/mknetid/mknetid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mknetid.c,v 1.2 1996/05/30 09:53:09 deraadt Exp $ */
+/* $OpenBSD: mknetid.c,v 1.3 1997/01/15 23:44:33 millert Exp $ */
/*
* Copyright (c) 1996 Mats O Jansson <moj@stacken.kth.se>
@@ -32,7 +32,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: mknetid.c,v 1.2 1996/05/30 09:53:09 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mknetid.c,v 1.3 1997/01/15 23:44:33 millert Exp $";
#endif
#include <sys/param.h>
@@ -537,7 +537,7 @@ char *argv[];
qflag = usage = 0;
domain = NULL;
- while ((ch = getopt(argc, argv, "d:g:h:m:p:q")) != EOF)
+ while ((ch = getopt(argc, argv, "d:g:h:m:p:q")) != -1)
switch (ch) {
case 'd':
domain = optarg;