summaryrefslogtreecommitdiffstats
path: root/games/phantasia/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/phantasia/setup.c')
-rw-r--r--games/phantasia/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/phantasia/setup.c b/games/phantasia/setup.c
index 5caac3d..17eea63 100644
--- a/games/phantasia/setup.c
+++ b/games/phantasia/setup.c
@@ -62,7 +62,7 @@ main(argc, argv)
struct stat fbuf; /* for getting files statistics */
int ch;
- while ((ch = getopt(argc, argv, "m:")) != EOF)
+ while ((ch = getopt(argc, argv, "m:")) != -1)
switch(ch) {
case 'm':
monsterfile = optarg;
OpenPOWER on IntegriCloud