-/* $NetBSD: diag.c,v 1.11 2008/01/28 05:38:53 dholland Exp $ */
+/* $NetBSD: diag.c,v 1.13 2012/06/19 05:30:43 dholland Exp $ */
/* diag.c Larn is copyrighted 1986 by Noah Morgan. */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: diag.c,v 1.11 2008/01/28 05:38:53 dholland Exp $");
+__RCSID("$NetBSD: diag.c,v 1.13 2012/06/19 05:30:43 dholland Exp $");
#endif /* not lint */
#include <sys/types.h>
#include <unistd.h>
#include "header.h"
#include "extern.h"
+
+static void greedy(void);
+static void fsorry(void);
+static void fcheat(void);
+
static struct tms cputime;
+time_t time(time_t *t);
+
/*
***************************
DIAG -- dungeon diagnostics
*/
static time_t zzz = 0;
int
-savegame(fname)
- char *fname;
+savegame(char *fname)
{
int i, k;
struct sphere *sp;
}
void
-restoregame(fname)
- char *fname;
+restoregame(char *fname)
{
int i, k;
struct sphere *sp, *sp2;
/*
subroutine to not allow greedy cheaters
*/
-void
-greedy()
+static void
+greedy(void)
{
#if WIZID
if (wizard)
subroutine to not allow altered save files and terminate the attempted
restart
*/
-void
-fsorry()
+static void
+fsorry(void)
{
lprcat("\nSorry, but your savefile has been altered.\n");
lprcat("However, seeing as I am a good sport, I will let you play.\n");
/*
subroutine to not allow game if save file can't be deleted
*/
-void
-fcheat()
+static void
+fcheat(void)
{
#if WIZID
if (wizard)