summaryrefslogtreecommitdiff
path: root/libexec/tcpd/tcpdchk
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>1999-05-23 17:19:25 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>1999-05-23 17:19:25 +0000
commit5d08734a5b3d621dfd1d78fa4e113f91bde28818 (patch)
tree52aa3b410719e56423a92a9ab98f8a11e62df786 /libexec/tcpd/tcpdchk
parentc392499dddf5d594aff961f2059d4c3d007889bf (diff)
getopt(3) returns -1, not EOF
Diffstat (limited to 'libexec/tcpd/tcpdchk')
-rw-r--r--libexec/tcpd/tcpdchk/tcpdchk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/tcpd/tcpdchk/tcpdchk.c b/libexec/tcpd/tcpdchk/tcpdchk.c
index c15a735c779..56ab3940d54 100644
--- a/libexec/tcpd/tcpdchk/tcpdchk.c
+++ b/libexec/tcpd/tcpdchk/tcpdchk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcpdchk.c,v 1.1 1997/02/26 06:17:09 downsj Exp $ */
+/* $OpenBSD: tcpdchk.c,v 1.2 1999/05/23 17:19:23 aaron Exp $ */
/*
* tcpdchk - examine all tcpd access control rules and inetd.conf entries
@@ -20,7 +20,7 @@
#if 0
static char sccsid[] = "@(#) tcpdchk.c 1.8 97/02/12 02:13:25";
#else
-static char rcsid[] = "$OpenBSD: tcpdchk.c,v 1.1 1997/02/26 06:17:09 downsj Exp $";
+static char rcsid[] = "$OpenBSD: tcpdchk.c,v 1.2 1999/05/23 17:19:23 aaron Exp $";
#endif
#endif
@@ -106,7 +106,7 @@ char **argv;
/*
* Parse the JCL.
*/
- while ((c = getopt(argc, argv, "adi:v")) != EOF) {
+ while ((c = getopt(argc, argv, "adi:v")) != -1) {
switch (c) {
case 'a':
allow_check = 1;