]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - phantasia/setup.c
use CPPFLAGS instead of CFLAGS
[bsdgames-darwin.git] / phantasia / setup.c
index da55980da898d00a04a78831c4b69354a8d6b3ae..7fc1d666100e3fb8b4aaeb5683ab0377dea1465d 100644 (file)
@@ -1,10 +1,11 @@
+/*     $NetBSD: setup.c,v 1.7 1997/10/13 02:18:37 lukem Exp $  */
+
 /*
  * setup.c - set up all files for Phantasia
  */
-#include "include.h"
 #include <sys/param.h>
 #include <sys/stat.h>
-#include <stdlib.h>
+#include "include.h"
 /*\f*/
 /************************************************************************
 /
@@ -63,7 +64,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;
@@ -75,7 +76,7 @@ main(argc, argv)
        argc -= optind;
        argv += optind;
 
-    srandom((unsigned) time((long *) NULL));   /* prime random numbers */
+    srandom((unsigned) time(NULL));    /* prime random numbers */
 
     umask(0117);               /* only owner can read/write created files */