summaryrefslogtreecommitdiffstats
path: root/arithmetic/arithmetic.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-10 11:49:44 +0000
committerlukem <lukem@NetBSD.org>1997-10-10 11:49:44 +0000
commit86e48c9a3b89780b5b63ae73636bda9f6c35206d (patch)
treea3bbb6f2a046d24acd0008b7b4fd8feabe9f3afd /arithmetic/arithmetic.c
parentb4bb83fd34ab5386afa1b8af8e0956ff7953d0e0 (diff)
downloadbsdgames-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.c6
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;