summaryrefslogtreecommitdiffstats
path: root/games/fish/fish.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/fish/fish.c')
-rw-r--r--games/fish/fish.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/fish/fish.c b/games/fish/fish.c
index 8ca6a32..452808a 100644
--- a/games/fish/fish.c
+++ b/games/fish/fish.c
@@ -76,7 +76,7 @@ main(argc, argv)
{
int ch, move;
- while ((ch = getopt(argc, argv, "p")) != EOF)
+ while ((ch = getopt(argc, argv, "p")) != -1)
switch(ch) {
case 'p':
promode = 1;
OpenPOWER on IntegriCloud