From f4288f1dc11e9e138ae0111dada90963b5b85140 Mon Sep 17 00:00:00 2001 From: lukem Date: Sun, 12 Oct 1997 14:19:17 +0000 Subject: getopt returns -1 not EOF --- phantasia/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phantasia/setup.c') 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; -- cgit v1.2.3-56-ge451