summaryrefslogtreecommitdiffstats
path: root/rogue
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 /rogue
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 'rogue')
-rw-r--r--rogue/machdep.c8
-rw-r--r--rogue/rogue.h6
2 files changed, 6 insertions, 8 deletions
diff --git a/rogue/machdep.c b/rogue/machdep.c
index baedb47b..96848910 100644
--- a/rogue/machdep.c
+++ b/rogue/machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.3 1995/04/22 10:27:39 cgd Exp $ */
+/* $NetBSD: machdep.c,v 1.4 1995/04/24 12:25:01 cgd Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)machdep.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: machdep.c,v 1.3 1995/04/22 10:27:39 cgd Exp $";
+static char rcsid[] = "$NetBSD: machdep.c,v 1.4 1995/04/24 12:25:01 cgd Exp $";
#endif
#endif /* not lint */
@@ -304,7 +304,7 @@ md_gct(rt_buf)
struct rogue_time *rt_buf;
{
struct tm *t, *localtime();
- long seconds;
+ time_t seconds;
time(&seconds);
t = localtime(&seconds);
@@ -338,7 +338,7 @@ char *fname;
struct rogue_time *rt_buf;
{
struct stat sbuf;
- long seconds;
+ time_t seconds;
struct tm *t;
stat(fname, &sbuf);
diff --git a/rogue/rogue.h b/rogue/rogue.h
index 94e37db9..c9b09874 100644
--- a/rogue/rogue.h
+++ b/rogue/rogue.h
@@ -1,4 +1,4 @@
-/* $NetBSD: rogue.h,v 1.3 1995/04/22 10:28:14 cgd Exp $ */
+/* $NetBSD: rogue.h,v 1.4 1995/04/24 12:25:04 cgd Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -428,9 +428,7 @@ extern object level_monsters;
/* external routine declarations.
*/
-char *strcpy();
-char *strncpy();
-char *strcat();
+#include <string.h>
char *mon_name();
char *get_ench_color();