From 42d8cf7dc7d21c36a9b19820b0e61bfa90a633a8 Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 29 Mar 2014 21:33:41 +0000 Subject: sprinkle static --- hunt/huntd/driver.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'hunt/huntd/driver.c') diff --git a/hunt/huntd/driver.c b/hunt/huntd/driver.c index e525aec6..b7dbd2b5 100644 --- a/hunt/huntd/driver.c +++ b/hunt/huntd/driver.c @@ -1,4 +1,4 @@ -/* $NetBSD: driver.c,v 1.28 2014/03/29 21:27:08 dholland Exp $ */ +/* $NetBSD: driver.c,v 1.29 2014/03/29 21:33:41 dholland Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,7 +32,7 @@ #include #ifndef lint -__RCSID("$NetBSD: driver.c,v 1.28 2014/03/29 21:27:08 dholland Exp $"); +__RCSID("$NetBSD: driver.c,v 1.29 2014/03/29 21:33:41 dholland Exp $"); #endif /* not lint */ #include @@ -47,10 +47,10 @@ __RCSID("$NetBSD: driver.c,v 1.28 2014/03/29 21:27:08 dholland Exp $"); #ifdef INTERNET -u_short Test_port = TEST_PORT; +static u_short Test_port = TEST_PORT; #else -char *Sock_name = "/tmp/hunt"; -char *Stat_name = "/tmp/hunt.stats"; +static const char Sock_name[] = "/tmp/hunt"; +static const char Stat_name[] = "/tmp/hunt.stats"; #endif static SOCKET Daemon; @@ -66,6 +66,12 @@ static u_short stat_port; /* port # of statistics tcp socket */ #define DAEMON_SIZE (sizeof Daemon - 1) #endif +#ifdef VOLCANO +static int volcano = 0; /* Explosion size */ +#endif + +static int Status; /* stat socket */ + static void clear_scores(void); static bool havechar(PLAYER *, int); static void init(void); -- cgit v1.2.3