]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - phantasia/setup.c
use CPPFLAGS instead of CFLAGS
[bsdgames-darwin.git] / phantasia / setup.c
index 7a53f610b6dc8fce7ec930ca66f57eeea0aac8d9..7fc1d666100e3fb8b4aaeb5683ab0377dea1465d 100644 (file)
@@ -1,12 +1,10 @@
-/*     $NetBSD: setup.c,v 1.5 1997/01/07 12:20:39 tls Exp $    */
+/*     $NetBSD: setup.c,v 1.7 1997/10/13 02:18:37 lukem Exp $  */
 
 /*
  * setup.c - set up all files for Phantasia
  */
 #include <sys/param.h>
 #include <sys/stat.h>
 
 /*
  * setup.c - set up all files for Phantasia
  */
 #include <sys/param.h>
 #include <sys/stat.h>
-#include <stdlib.h>
-#include <unistd.h>
 #include "include.h"
 /*\f*/
 /************************************************************************
 #include "include.h"
 /*\f*/
 /************************************************************************
@@ -66,7 +64,7 @@ main(argc, argv)
        int ch;
        char path[MAXPATHLEN], *prefix;
 
        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;
                switch(ch) {
                case 'm':
                        monsterfile = optarg;