summaryrefslogtreecommitdiffstats
path: root/hunt
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-03-29 22:05:44 +0000
committerdholland <dholland@NetBSD.org>2014-03-29 22:05:44 +0000
commit39baeb1c2eb138565c2e60d1375675be5e252148 (patch)
treec092e54d5172aeb34f129d67810cb7d8bfa8480f /hunt
parent12b64f130d7b1876283d9adc75f6e315f928f357 (diff)
downloadbsdgames-darwin-39baeb1c2eb138565c2e60d1375675be5e252148.tar.gz
bsdgames-darwin-39baeb1c2eb138565c2e60d1375675be5e252148.tar.zst
bsdgames-darwin-39baeb1c2eb138565c2e60d1375675be5e252148.zip
make some globals static
Diffstat (limited to 'hunt')
-rw-r--r--hunt/hunt/hunt.c13
-rw-r--r--hunt/hunt/hunt_private.h10
2 files changed, 9 insertions, 14 deletions
diff --git a/hunt/hunt/hunt.c b/hunt/hunt/hunt.c
index 61838fdf..bfeac96b 100644
--- a/hunt/hunt/hunt.c
+++ b/hunt/hunt/hunt.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt.c,v 1.44 2014/03/29 21:24:26 dholland Exp $ */
+/* $NetBSD: hunt.c,v 1.45 2014/03/29 22:05:44 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: hunt.c,v 1.44 2014/03/29 21:24:26 dholland Exp $");
+__RCSID("$NetBSD: hunt.c,v 1.45 2014/03/29 22:05:44 dholland Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -57,15 +57,18 @@ __RCSID("$NetBSD: hunt.c,v 1.44 2014/03/29 21:24:26 dholland Exp $");
#define put_str addstr
#ifdef DEBUG
-char *Driver = "/home/socr/a/conrad/games/src/hunt/huntd.dbg";
+static const char Driver[] = "/home/socr/a/conrad/games/src/hunt/huntd.dbg";
#else
-const char *Driver = HUNTD;
+static const char Driver[] = HUNTD;
#endif
#ifdef INTERNET
-u_short Test_port = TEST_PORT;
+static uint16_t Test_port = TEST_PORT;
+#else
+static const char Sock_name[] = "/tmp/hunt";
#endif
+
bool Last_player = false;
#ifdef MONITOR
bool Am_monitor = false;
diff --git a/hunt/hunt/hunt_private.h b/hunt/hunt/hunt_private.h
index 58a299c1..06963100 100644
--- a/hunt/hunt/hunt_private.h
+++ b/hunt/hunt/hunt_private.h
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt_private.h,v 1.1 2014/03/29 21:24:26 dholland Exp $ */
+/* $NetBSD: hunt_private.h,v 1.2 2014/03/29 22:05:44 dholland Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
@@ -60,18 +60,10 @@
extern bool Last_player;
-extern const char *Driver;
-
extern char Buf[BUFSIZ];
extern int Socket;
#ifdef INTERNET
-extern u_short Test_port;
-#else
-extern char *Sock_name;
-#endif
-
-#ifdef INTERNET
extern char *Send_message;
#endif