summaryrefslogtreecommitdiffstats
path: root/hunt/huntd/makemaze.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-08-12 07:42:11 +0000
committerdholland <dholland@NetBSD.org>2009-08-12 07:42:11 +0000
commitc10b9a8ce82ad7b4b287ccc5b5b576ab961aa488 (patch)
treeada5191dc0ecc9bd46bd68d6b73ea060c04570d4 /hunt/huntd/makemaze.c
parent8b1c71ee649fb41155da92995044e451c39ea700 (diff)
downloadbsdgames-darwin-c10b9a8ce82ad7b4b287ccc5b5b576ab961aa488.tar.gz
bsdgames-darwin-c10b9a8ce82ad7b4b287ccc5b5b576ab961aa488.tar.zst
bsdgames-darwin-c10b9a8ce82ad7b4b287ccc5b5b576ab961aa488.zip
sprinkle static and prune some dead code
Diffstat (limited to 'hunt/huntd/makemaze.c')
-rw-r--r--hunt/huntd/makemaze.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hunt/huntd/makemaze.c b/hunt/huntd/makemaze.c
index 47a01bb3..dd52ee4a 100644
--- a/hunt/huntd/makemaze.c
+++ b/hunt/huntd/makemaze.c
@@ -1,4 +1,4 @@
-/* $NetBSD: makemaze.c,v 1.6 2009/07/04 04:29:55 dholland Exp $ */
+/* $NetBSD: makemaze.c,v 1.7 2009/08/12 07:42:11 dholland Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
* All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: makemaze.c,v 1.6 2009/07/04 04:29:55 dholland Exp $");
+__RCSID("$NetBSD: makemaze.c,v 1.7 2009/08/12 07:42:11 dholland Exp $");
#endif /* not lint */
#include "hunt.h"
@@ -67,7 +67,7 @@ makemaze(void)
#define NPERM 24
#define NDIR 4
-int dirs[NPERM][NDIR] = {
+static int dirs[NPERM][NDIR] = {
{0,1,2,3}, {3,0,1,2}, {0,2,3,1}, {0,3,2,1},
{1,0,2,3}, {2,3,0,1}, {0,2,1,3}, {2,3,1,0},
{1,0,3,2}, {1,2,0,3}, {3,1,2,0}, {2,0,3,1},
@@ -76,7 +76,7 @@ int dirs[NPERM][NDIR] = {
{2,1,3,0}, {3,0,2,1}, {3,2,0,1}, {3,2,1,0}
};
-int incr[NDIR][2] = {
+static int incr[NDIR][2] = {
{0, 1}, {1, 0}, {0, -1}, {-1, 0}
};