summaryrefslogtreecommitdiffstats
path: root/phantasia/gamesupport.c
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1995-04-24 12:21:37 +0000
committercgd <cgd@NetBSD.org>1995-04-24 12:21:37 +0000
commita65a873e56c35780711e9f73872c4fe0254589b0 (patch)
tree5e3a2578839def2becc14922977dc641dfd01c20 /phantasia/gamesupport.c
parentd7c608df67f7b99aee31ddf6c13d8870695f6827 (diff)
downloadbsdgames-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/gamesupport.c')
-rw-r--r--phantasia/gamesupport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/phantasia/gamesupport.c b/phantasia/gamesupport.c
index b1be5e4d..e4742b0f 100644
--- a/phantasia/gamesupport.c
+++ b/phantasia/gamesupport.c
@@ -1,4 +1,4 @@
-/* $NetBSD: gamesupport.c,v 1.2 1995/03/24 03:58:43 cgd Exp $ */
+/* $NetBSD: gamesupport.c,v 1.3 1995/04/24 12:24:28 cgd Exp $ */
/*
* gamesupport.c - auxiliary routines for support of Phantasia
@@ -63,7 +63,7 @@ int c; /* input */
int today; /* day of year of today */
int temp; /* temporary variable */
long loc; /* location in player file */
-long now; /* time now */
+time_t now; /* time now */
double dtemp; /* temporary variable */
bool *bptr; /* pointer to bool item to change */
double *dptr; /* pointer to double item to change */
@@ -626,7 +626,7 @@ purgeoldplayers()
{
int today; /* day of year for today */
int daysold; /* how many days since the character has been used */
-long ltime; /* time in seconds */
+time_t ltime; /* time in seconds */
long loc = 0L; /* location in file */
time(&ltime);