diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-15 23:44:39 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-15 23:44:39 +0000 |
commit | 552d265b6ced1e56d31f20f16a7fe9ae818d568b (patch) | |
tree | 219a59b7e7a5ef53ddfc66cdc38e73e3f79258c8 /sys/arch/amiga/stand/binpatch | |
parent | bf6413046b73005ecca3f5352c8711d00a6d00b9 (diff) |
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'sys/arch/amiga/stand/binpatch')
-rw-r--r-- | sys/arch/amiga/stand/binpatch/binpatch.c | 4 |
1 files changed, 2 insertions, 2 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': |