diff options
author | lukem <lukem@NetBSD.org> | 1997-10-12 14:19:17 +0000 |
---|---|---|
committer | lukem <lukem@NetBSD.org> | 1997-10-12 14:19:17 +0000 |
commit | f4288f1dc11e9e138ae0111dada90963b5b85140 (patch) | |
tree | 0bb2c3b8e734c8d0a492259d0b90e5dadbb9b4ec /phantasia | |
parent | 65ac0ead568e2d20aba09e6b177b05a219a4e38d (diff) | |
download | bsdgames-darwin-f4288f1dc11e9e138ae0111dada90963b5b85140.tar.gz bsdgames-darwin-f4288f1dc11e9e138ae0111dada90963b5b85140.tar.zst bsdgames-darwin-f4288f1dc11e9e138ae0111dada90963b5b85140.zip |
getopt returns -1 not EOF
Diffstat (limited to 'phantasia')
-rw-r--r-- | phantasia/setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phantasia/setup.c b/phantasia/setup.c index 7a53f610..fadd7d99 100644 --- a/phantasia/setup.c +++ b/phantasia/setup.c @@ -1,4 +1,4 @@ -/* $NetBSD: setup.c,v 1.5 1997/01/07 12:20:39 tls Exp $ */ +/* $NetBSD: setup.c,v 1.6 1997/10/12 14:19:17 lukem Exp $ */ /* * setup.c - set up all files for Phantasia @@ -66,7 +66,7 @@ main(argc, argv) int ch; char path[MAXPATHLEN], *prefix; - while ((ch = getopt(argc, argv, "m:")) != EOF) + while ((ch = getopt(argc, argv, "m:")) != -1) switch(ch) { case 'm': monsterfile = optarg; |