diff options
author | cgd <cgd@NetBSD.org> | 1995-04-24 12:21:37 +0000 |
---|---|---|
committer | cgd <cgd@NetBSD.org> | 1995-04-24 12:21:37 +0000 |
commit | a65a873e56c35780711e9f73872c4fe0254589b0 (patch) | |
tree | 5e3a2578839def2becc14922977dc641dfd01c20 /phantasia/main.c | |
parent | d7c608df67f7b99aee31ddf6c13d8870695f6827 (diff) | |
download | bsdgames-darwin-a65a873e56c35780711e9f73872c4fe0254589b0.tar.gz bsdgames-darwin-a65a873e56c35780711e9f73872c4fe0254589b0.tar.zst bsdgames-darwin-a65a873e56c35780711e9f73872c4fe0254589b0.zip |
Various changes to make games compile w/o warnings on the alpha:
Include appropriate includes, delete bogus function declarations,
change sizes of variables and casts.
Diffstat (limited to 'phantasia/main.c')
-rw-r--r-- | phantasia/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phantasia/main.c b/phantasia/main.c index 2e01b692..a40dfb0c 100644 --- a/phantasia/main.c +++ b/phantasia/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.2 1995/03/24 03:58:54 cgd Exp $ */ +/* $NetBSD: main.c,v 1.3 1995/04/24 12:24:37 cgd Exp $ */ /* * Phantasia 3.3.2 -- Interterminal fantasy game @@ -102,7 +102,7 @@ char **argv; bool noheader = FALSE; /* set if don't want header */ bool headeronly = FALSE; /* set if only want header */ bool examine = FALSE; /* set if examine a character */ -long seconds; /* for time of day */ +time_t seconds; /* for time of day */ double dtemp; /* for temporary calculations */ initialstate(); /* init globals */ @@ -369,7 +369,7 @@ initialstate() error(_PATH_VOID); /*NOTREACHED*/ - srandom((unsigned) time((long *) NULL)); /* prime random numbers */ + srandom((unsigned) time(NULL)); /* prime random numbers */ } /**/ /************************************************************************ |