diff options
author | lukem <lukem@NetBSD.org> | 1997-10-10 11:49:44 +0000 |
---|---|---|
committer | lukem <lukem@NetBSD.org> | 1997-10-10 11:49:44 +0000 |
commit | 86e48c9a3b89780b5b63ae73636bda9f6c35206d (patch) | |
tree | a3bbb6f2a046d24acd0008b7b4fd8feabe9f3afd /arithmetic/arithmetic.c | |
parent | b4bb83fd34ab5386afa1b8af8e0956ff7953d0e0 (diff) | |
download | bsdgames-darwin-86e48c9a3b89780b5b63ae73636bda9f6c35206d.tar.gz bsdgames-darwin-86e48c9a3b89780b5b63ae73636bda9f6c35206d.tar.zst bsdgames-darwin-86e48c9a3b89780b5b63ae73636bda9f6c35206d.zip |
getopt returns -1 not EOF
Diffstat (limited to 'arithmetic/arithmetic.c')
-rw-r--r-- | arithmetic/arithmetic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arithmetic/arithmetic.c b/arithmetic/arithmetic.c index 8e943993..fa16d56c 100644 --- a/arithmetic/arithmetic.c +++ b/arithmetic/arithmetic.c @@ -1,4 +1,4 @@ -/* $NetBSD: arithmetic.c,v 1.7 1997/10/09 23:07:02 lukem Exp $ */ +/* $NetBSD: arithmetic.c,v 1.8 1997/10/10 11:49:44 lukem Exp $ */ /* * Copyright (c) 1989, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: arithmetic.c,v 1.7 1997/10/09 23:07:02 lukem Exp $"); +__RCSID("$NetBSD: arithmetic.c,v 1.8 1997/10/10 11:49:44 lukem Exp $"); #endif #endif /* not lint */ @@ -121,7 +121,7 @@ main(argc, argv) extern int optind; int ch, cnt; - while ((ch = getopt(argc, argv, "r:o:")) != EOF) + while ((ch = getopt(argc, argv, "r:o:")) != -1) switch(ch) { case 'o': { char *p; |