+/* $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*/
/************************************************************************
/
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;
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 */