summaryrefslogtreecommitdiff
path: root/sys/arch/amiga/stand
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 /sys/arch/amiga/stand
parentbf6413046b73005ecca3f5352c8711d00a6d00b9 (diff)
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'sys/arch/amiga/stand')
-rw-r--r--sys/arch/amiga/stand/binpatch/binpatch.c4
-rw-r--r--sys/arch/amiga/stand/loadbsd/loadbsd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/amiga/stand/binpatch/binpatch.c b/sys/arch/amiga/stand/binpatch/binpatch.c
index 358c60caf01..60d04a0dc94 100644
--- a/sys/arch/amiga/stand/binpatch/binpatch.c
+++ b/sys/arch/amiga/stand/binpatch/binpatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: binpatch.c,v 1.2 1996/10/04 23:09:54 niklas Exp $ */
+/* $OpenBSD: binpatch.c,v 1.3 1997/01/15 23:41:49 millert Exp $ */
/* $NetBSD: binpatch.c,v 1.6 1995/08/18 15:28:28 chopps Exp $ */
/* Author: Markus Wild mw@eunet.ch ??? */
@@ -110,7 +110,7 @@ main(int argc, char *argv[])
u_char cval;
- while ((c = getopt (argc, argv, "H:a:bwlr:s:o:")) != EOF)
+ while ((c = getopt (argc, argv, "H:a:bwlr:s:o:")) != -1)
switch (c)
{
case 'H':
diff --git a/sys/arch/amiga/stand/loadbsd/loadbsd.c b/sys/arch/amiga/stand/loadbsd/loadbsd.c
index 82287c45321..bd30916977a 100644
--- a/sys/arch/amiga/stand/loadbsd/loadbsd.c
+++ b/sys/arch/amiga/stand/loadbsd/loadbsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: loadbsd.c,v 1.8 1996/10/10 07:08:16 niklas Exp $ */
+/* $OpenBSD: loadbsd.c,v 1.9 1997/01/15 23:41:50 millert Exp $ */
/* $NetBSD: loadbsd.c,v 1.19.4.2 1996/08/03 00:51:46 jtc Exp $ */
/*
@@ -208,7 +208,7 @@ main(argc, argv)
if ((ExpansionBase=(void *)OpenLibrary(EXPANSIONNAME, 0)) == NULL)
err(20, "can't open expansion library");
- while ((ch = getopt(argc, argv, "aAbcC:DhI:km:n:ptsSVZ")) != EOF) {
+ while ((ch = getopt(argc, argv, "aAbcC:DhI:km:n:ptsSVZ")) != -1) {
switch (ch) {
case 'k':
k_flag = 1;