summaryrefslogtreecommitdiffstats
path: root/snake
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 /snake
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 'snake')
-rw-r--r--snake/snake/snake.c8
-rw-r--r--snake/snake/snake.h3
-rw-r--r--snake/snscore/snscore.c5
3 files changed, 9 insertions, 7 deletions
diff --git a/snake/snake/snake.c b/snake/snake/snake.c
index 1b8ecfdc..089121cc 100644
--- a/snake/snake/snake.c
+++ b/snake/snake/snake.c
@@ -1,4 +1,4 @@
-/* $NetBSD: snake.c,v 1.6 1995/04/22 10:18:17 cgd Exp $ */
+/* $NetBSD: snake.c,v 1.7 1995/04/24 12:25:34 cgd Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)snake.c 8.2 (Berkeley) 1/7/94";
#else
-static char rcsid[] = "$NetBSD: snake.c,v 1.6 1995/04/22 10:18:17 cgd Exp $";
+static char rcsid[] = "$NetBSD: snake.c,v 1.7 1995/04/24 12:25:34 cgd Exp $";
#endif
#endif /* not lint */
@@ -97,7 +97,7 @@ char ch, savec;
char *kl, *kr, *ku, *kd;
int fast=1;
int repeat=1;
-long tv;
+time_t tv;
char *tn;
main(argc,argv)
@@ -887,7 +887,7 @@ logit(msg)
char *msg;
{
FILE *logfile;
- long t;
+ time_t t;
if ((logfile=fopen(_PATH_LOGFILE, "a")) != NULL) {
time(&t);
diff --git a/snake/snake/snake.h b/snake/snake/snake.h
index bdbd1362..fda11923 100644
--- a/snake/snake/snake.h
+++ b/snake/snake/snake.h
@@ -1,4 +1,4 @@
-/* $NetBSD: snake.h,v 1.3 1995/04/22 08:34:38 cgd Exp $ */
+/* $NetBSD: snake.h,v 1.4 1995/04/24 12:25:38 cgd Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -36,6 +36,7 @@
*/
# include <stdio.h>
+# include <string.h>
# include <assert.h>
# include <sys/types.h>
# include <sgtty.h>
diff --git a/snake/snscore/snscore.c b/snake/snscore/snscore.c
index 8ad6b59a..a45babca 100644
--- a/snake/snscore/snscore.c
+++ b/snake/snscore/snscore.c
@@ -1,4 +1,4 @@
-/* $NetBSD: snscore.c,v 1.4 1995/04/22 08:34:43 cgd Exp $ */
+/* $NetBSD: snscore.c,v 1.5 1995/04/24 12:25:43 cgd Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)snscore.c 8.1 (Berkeley) 7/19/93";
#else
-static char rcsid[] = "$NetBSD: snscore.c,v 1.4 1995/04/22 08:34:43 cgd Exp $";
+static char rcsid[] = "$NetBSD: snscore.c,v 1.5 1995/04/24 12:25:43 cgd Exp $";
#endif
#endif /* not lint */
@@ -51,6 +51,7 @@ static char rcsid[] = "$NetBSD: snscore.c,v 1.4 1995/04/22 08:34:43 cgd Exp $";
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "pathnames.h"
char *recfile = _PATH_RAWSCORES;