diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-05-23 17:19:25 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-05-23 17:19:25 +0000 |
commit | 5d08734a5b3d621dfd1d78fa4e113f91bde28818 (patch) | |
tree | 52aa3b410719e56423a92a9ab98f8a11e62df786 /libexec | |
parent | c392499dddf5d594aff961f2059d4c3d007889bf (diff) |
getopt(3) returns -1, not EOF
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/tcpd/tcpdchk/tcpdchk.c | 6 | ||||
-rw-r--r-- | libexec/tcpd/tcpdmatch/tcpdmatch.c | 6 |
2 files changed, 6 insertions, 6 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; diff --git a/libexec/tcpd/tcpdmatch/tcpdmatch.c b/libexec/tcpd/tcpdmatch/tcpdmatch.c index fb4fd1c242f..6928bb63999 100644 --- a/libexec/tcpd/tcpdmatch/tcpdmatch.c +++ b/libexec/tcpd/tcpdmatch/tcpdmatch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcpdmatch.c,v 1.1 1997/02/26 06:17:10 downsj Exp $ */ +/* $OpenBSD: tcpdmatch.c,v 1.2 1999/05/23 17:19:23 aaron Exp $ */ /* * tcpdmatch - explain what tcpd would do in a specific case @@ -19,7 +19,7 @@ #if 0 static char sccsid[] = "@(#) tcpdmatch.c 1.5 96/02/11 17:01:36"; #else -static char rcsid[] = "$OpenBSD: tcpdmatch.c,v 1.1 1997/02/26 06:17:10 downsj Exp $"; +static char rcsid[] = "$OpenBSD: tcpdmatch.c,v 1.2 1999/05/23 17:19:23 aaron Exp $"; #endif #endif @@ -85,7 +85,7 @@ char **argv; /* * Parse the JCL. */ - while ((ch = getopt(argc, argv, "di:")) != EOF) { + while ((ch = getopt(argc, argv, "di:")) != -1) { switch (ch) { case 'd': hosts_allow_table = "hosts.allow"; |