summaryrefslogtreecommitdiffstats
path: root/games/primes/primes.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/primes/primes.c')
-rw-r--r--games/primes/primes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/primes/primes.c b/games/primes/primes.c
index f174e90..c2e0702 100644
--- a/games/primes/primes.c
+++ b/games/primes/primes.c
@@ -115,7 +115,7 @@ main(argc, argv)
int ch;
char *p;
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch (ch) {
case '?':
default:
OpenPOWER on IntegriCloud