summaryrefslogtreecommitdiffstats
path: root/adventure/init.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-08-12 04:28:27 +0000
committerdholland <dholland@NetBSD.org>2009-08-12 04:28:27 +0000
commit63e571cca69e7558ecb2d0e2e654eff896c0ac62 (patch)
tree0141582e34f580554ecc15ffc8b4517ada70fc50 /adventure/init.c
parent2dc7494ef4aeb144d0da0b9bdbcfeba12073e5e3 (diff)
downloadbsdgames-darwin-63e571cca69e7558ecb2d0e2e654eff896c0ac62.tar.gz
bsdgames-darwin-63e571cca69e7558ecb2d0e2e654eff896c0ac62.tar.zst
bsdgames-darwin-63e571cca69e7558ecb2d0e2e654eff896c0ac62.zip
sprinkle static
Diffstat (limited to 'adventure/init.c')
-rw-r--r--adventure/init.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/adventure/init.c b/adventure/init.c
index 5269b96c..5a4ca15f 100644
--- a/adventure/init.c
+++ b/adventure/init.c
@@ -1,4 +1,4 @@
-/* $NetBSD: init.c,v 1.17 2007/12/15 19:44:38 perry Exp $ */
+/* $NetBSD: init.c,v 1.18 2009/08/12 04:28:27 dholland Exp $ */
/*-
* Copyright (c) 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 6/2/93";
#else
-__RCSID("$NetBSD: init.c,v 1.17 2007/12/15 19:44:38 perry Exp $");
+__RCSID("$NetBSD: init.c,v 1.18 2009/08/12 04:28:27 dholland Exp $");
#endif
#endif /* not lint */
@@ -55,12 +55,13 @@ __RCSID("$NetBSD: init.c,v 1.17 2007/12/15 19:44:38 perry Exp $");
#include "hdr.h"
#include "extern.h"
+static void linkdata(void);
+
int blklin = TRUE;
int setbit[16] = {1, 2, 4, 010, 020, 040, 0100, 0200, 0400, 01000, 02000,
04000, 010000, 020000, 040000, 0100000};
-int datfd; /* message file descriptor */
volatile sig_atomic_t delhit;
int yea;
@@ -111,9 +112,11 @@ int keys, lamp, grate, cage, rod, rod2, steps, /* mnemonics */
axe, mirror, dragon, chasm, troll, troll2, bear, messag,
vend, batter, nugget, coins, chest, eggs, tridnt, vase,
emrald, pyram, pearl, rug, chain, spices, back, look, cave,
- null, entrnc, dprssn, enter, stream, pour, say, lock, throw,
+ null, entrnc, dprssn, say, lock, throw,
find, invent;
+static int enter, /*stream,*/ pour;
+
int chloc, chloc2, dseen[7], dloc[7], /* dwarf stuff */
odloc[7], dflag, daltlc;
@@ -148,7 +151,7 @@ decr(int a, int b, int c, int d, int e)
return buf;
}
-void
+static void
linkdata(void)
{ /* secondary data manipulation */
int i, j;