summaryrefslogtreecommitdiffstats
path: root/larn/scores.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 /larn/scores.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 'larn/scores.c')
-rw-r--r--larn/scores.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/larn/scores.c b/larn/scores.c
index cd9fd9e2..8a2fac26 100644
--- a/larn/scores.c
+++ b/larn/scores.c
@@ -1,5 +1,5 @@
#ifndef lint
-static char rcsid[] = "$NetBSD: scores.c,v 1.4 1995/03/23 08:34:15 cgd Exp $";
+static char rcsid[] = "$NetBSD: scores.c,v 1.5 1995/04/24 12:24:08 cgd Exp $";
#endif /* not lint */
/* scores.c Larn is copyrighted 1986 by Noah Morgan.
@@ -29,6 +29,7 @@ static char rcsid[] = "$NetBSD: scores.c,v 1.4 1995/03/23 08:34:15 cgd Exp $";
#include <sys/times.h>
#include <sys/stat.h>
#include "header.h"
+#include <string.h>
struct scofmt /* This is the structure for the scoreboard */
{
@@ -55,7 +56,7 @@ struct wscofmt /* This is the structure for the winning scoreboard */
struct log_fmt /* 102 bytes struct for the log file */
{
long score; /* the players score */
- long diedtime; /* time when game was over */
+ time_t diedtime; /* time when game was over */
short cavelev; /* level in caves */
short diff; /* difficulty player played at */
#ifdef EXTRA
@@ -472,7 +473,8 @@ died(x)
{
register int f,win;
char ch,*mod;
- long zzz,i;
+ time_t zzz;
+ long i;
struct tms cputime;
if (c[LIFEPROT]>0) /* if life protection */
{