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 /sys/arch/i386/isa/pcvt | |
parent | c392499dddf5d594aff961f2059d4c3d007889bf (diff) |
getopt(3) returns -1, not EOF
Diffstat (limited to 'sys/arch/i386/isa/pcvt')
-rw-r--r-- | sys/arch/i386/isa/pcvt/Util/kbdio/kbdio.y | 6 | ||||
-rw-r--r-- | sys/arch/i386/isa/pcvt/Util/vgaio/vgaio.y | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/i386/isa/pcvt/Util/kbdio/kbdio.y b/sys/arch/i386/isa/pcvt/Util/kbdio/kbdio.y index 97fed85741d..42007867550 100644 --- a/sys/arch/i386/isa/pcvt/Util/kbdio/kbdio.y +++ b/sys/arch/i386/isa/pcvt/Util/kbdio/kbdio.y @@ -1,4 +1,4 @@ -/* $OpenBSD: kbdio.y,v 1.2 1999/01/13 07:26:05 niklas Exp $ */ +/* $OpenBSD: kbdio.y,v 1.3 1999/05/23 17:19:21 aaron Exp $ */ /* Hello emacs, this should be edited in -*- Fundamental -*- mode */ %{ @@ -36,7 +36,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ident "$Header: /cvs/OpenBSD/src/sys/arch/i386/isa/pcvt/Util/kbdio/Attic/kbdio.y,v 1.2 1999/01/13 07:26:05 niklas Exp $" +#ident "$Header: /cvs/OpenBSD/src/sys/arch/i386/isa/pcvt/Util/kbdio/Attic/kbdio.y,v 1.3 1999/05/23 17:19:21 aaron Exp $" #include <stdio.h> #include <stdlib.h> @@ -307,7 +307,7 @@ int main(int argc, char **argv) { int fd, c; const char *devname = "/dev/console"; - while((c = getopt(argc, argv, "df:")) != EOF) + while((c = getopt(argc, argv, "df:")) != -1) switch(c) { case 'd': yydebug = 1; diff --git a/sys/arch/i386/isa/pcvt/Util/vgaio/vgaio.y b/sys/arch/i386/isa/pcvt/Util/vgaio/vgaio.y index 6b46cf0efc4..93bfc7e199b 100644 --- a/sys/arch/i386/isa/pcvt/Util/vgaio/vgaio.y +++ b/sys/arch/i386/isa/pcvt/Util/vgaio/vgaio.y @@ -1,4 +1,4 @@ -/* $OpenBSD: vgaio.y,v 1.2 1999/01/13 07:26:07 niklas Exp $ */ +/* $OpenBSD: vgaio.y,v 1.3 1999/05/23 17:19:22 aaron Exp $ */ /* Hello emacs, this should be edited in -*- Fundamental -*- mode */ %{ @@ -36,7 +36,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ident "$Header: /cvs/OpenBSD/src/sys/arch/i386/isa/pcvt/Util/vgaio/Attic/vgaio.y,v 1.2 1999/01/13 07:26:07 niklas Exp $" +#ident "$Header: /cvs/OpenBSD/src/sys/arch/i386/isa/pcvt/Util/vgaio/Attic/vgaio.y,v 1.3 1999/05/23 17:19:22 aaron Exp $" #include <stdio.h> #include <stdlib.h> @@ -229,7 +229,7 @@ int main(int argc, char **argv) { int fd, c; const char *devname = "/dev/console"; - while((c = getopt(argc, argv, "df:")) != EOF) + while((c = getopt(argc, argv, "df:")) != -1) switch(c) { case 'd': yydebug = 1; |