From a65a873e56c35780711e9f73872c4fe0254589b0 Mon Sep 17 00:00:00 2001 From: cgd Date: Mon, 24 Apr 1995 12:21:37 +0000 Subject: 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. --- rogue/machdep.c | 8 ++++---- rogue/rogue.h | 6 ++---- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'rogue') 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 char *mon_name(); char *get_ench_color(); -- cgit v1.2.3-56-ge451