summaryrefslogtreecommitdiffstats
path: root/larn/diag.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-02-03 19:20:40 +0000
committerdholland <dholland@NetBSD.org>2008-02-03 19:20:40 +0000
commitbf91baeffb42cde8688e3e5735369c864ed29d91 (patch)
treec431f9c498c73de5ed5021009b69cecd9de27c02 /larn/diag.c
parentf1ec001029402476abce34e4130373b3c34a16c7 (diff)
downloadbsdgames-darwin-bf91baeffb42cde8688e3e5735369c864ed29d91.tar.gz
bsdgames-darwin-bf91baeffb42cde8688e3e5735369c864ed29d91.tar.zst
bsdgames-darwin-bf91baeffb42cde8688e3e5735369c864ed29d91.zip
Make a bunch of functions static. Merged from larn 12.2.
Diffstat (limited to 'larn/diag.c')
-rw-r--r--larn/diag.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/larn/diag.c b/larn/diag.c
index 4f8ea899..43f1ff64 100644
--- a/larn/diag.c
+++ b/larn/diag.c
@@ -1,9 +1,9 @@
-/* $NetBSD: diag.c,v 1.11 2008/01/28 05:38:53 dholland Exp $ */
+/* $NetBSD: diag.c,v 1.12 2008/02/03 19:20:41 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.12 2008/02/03 19:20:41 dholland Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -14,7 +14,13 @@ __RCSID("$NetBSD: diag.c,v 1.11 2008/01/28 05:38:53 dholland Exp $");
#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;
+
/*
***************************
DIAG -- dungeon diagnostics
@@ -353,8 +359,8 @@ restoregame(fname)
/*
subroutine to not allow greedy cheaters
*/
-void
-greedy()
+static void
+greedy(void)
{
#if WIZID
if (wizard)
@@ -375,8 +381,8 @@ greedy()
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");
@@ -388,8 +394,8 @@ fsorry()
/*
subroutine to not allow game if save file can't be deleted
*/
-void
-fcheat()
+static void
+fcheat(void)
{
#if WIZID
if (wizard)