X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/045c162979af9765f1d2f9076378613da3cb28f7..9c92b8bd99b887e8656d51d1feea89aae1ae9445:/phantasia/setup.c diff --git a/phantasia/setup.c b/phantasia/setup.c index da55980d..7fc1d666 100644 --- a/phantasia/setup.c +++ b/phantasia/setup.c @@ -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 #include -#include +#include "include.h" /* */ /************************************************************************ / @@ -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 */