summaryrefslogtreecommitdiff
path: root/games/factor/factor.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/factor/factor.c')
-rw-r--r--games/factor/factor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/factor/factor.c b/games/factor/factor.c
index ba31462a294..3407b3587a0 100644
--- a/games/factor/factor.c
+++ b/games/factor/factor.c
@@ -103,7 +103,7 @@ main(argc, argv)
setegid(getgid());
setgid(getgid());
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch (ch) {
case '?':
default: