Module Name: src
Committed By: dholland
Date: Sat Mar 29 22:05:44 UTC 2014
Modified Files:
src/games/hunt/hunt: hunt.c hunt_private.h
Log Message:
make some globals static
To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/games/hunt/hunt/hunt.c
cvs rdiff -u -r1.1 -r1.2 src/games/hunt/hunt/hunt_private.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/games/hunt/hunt/hunt.c
diff -u src/games/hunt/hunt/hunt.c:1.44 src/games/hunt/hunt/hunt.c:1.45
--- src/games/hunt/hunt/hunt.c:1.44 Sat Mar 29 21:24:26 2014
+++ src/games/hunt/hunt/hunt.c Sat Mar 29 22:05:44 2014
@@ -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/
#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;
Index: src/games/hunt/hunt/hunt_private.h
diff -u src/games/hunt/hunt/hunt_private.h:1.1 src/games/hunt/hunt/hunt_private.h:1.2
--- src/games/hunt/hunt/hunt_private.h:1.1 Sat Mar 29 21:24:26 2014
+++ src/games/hunt/hunt/hunt_private.h Sat Mar 29 22:05:44 2014
@@ -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