summaryrefslogtreecommitdiffstats
path: root/hunt/hunt
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-03-29 22:11:19 +0000
committerdholland <dholland@NetBSD.org>2014-03-29 22:11:19 +0000
commitb8e5b1fd45eaa69e4942c4855a9d3c05fd14e554 (patch)
treea209bfffeeb00968fc2f8d2148f03f3c2b1744e7 /hunt/hunt
parent39baeb1c2eb138565c2e60d1375675be5e252148 (diff)
downloadbsdgames-darwin-b8e5b1fd45eaa69e4942c4855a9d3c05fd14e554.tar.gz
bsdgames-darwin-b8e5b1fd45eaa69e4942c4855a9d3c05fd14e554.tar.zst
bsdgames-darwin-b8e5b1fd45eaa69e4942c4855a9d3c05fd14e554.zip
handle compiled-in pathnames the customary way
Diffstat (limited to 'hunt/hunt')
-rw-r--r--hunt/hunt/hunt.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/hunt/hunt/hunt.c b/hunt/hunt/hunt.c
index bfeac96b..696c2d58 100644
--- a/hunt/hunt/hunt.c
+++ b/hunt/hunt/hunt.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt.c,v 1.45 2014/03/29 22:05:44 dholland Exp $ */
+/* $NetBSD: hunt.c,v 1.46 2014/03/29 22:11:19 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.45 2014/03/29 22:05:44 dholland Exp $");
+__RCSID("$NetBSD: hunt.c,v 1.46 2014/03/29 22:11:19 dholland Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -50,22 +50,23 @@ __RCSID("$NetBSD: hunt.c,v 1.45 2014/03/29 22:05:44 dholland Exp $");
#include <ifaddrs.h>
#include "hunt_common.h"
+#include "pathnames.h"
#include "hunt_private.h"
#define clear_eol() clrtoeol()
#define put_ch addch
#define put_str addstr
-#ifdef DEBUG
-static const char Driver[] = "/home/socr/a/conrad/games/src/hunt/huntd.dbg";
+#ifdef OVERRIDE_PATH_HUNTD
+static const char Driver[] = OVERRIDE_PATH_HUNTD;
#else
-static const char Driver[] = HUNTD;
+static const char Driver[] = PATH_HUNTD;
#endif
#ifdef INTERNET
static uint16_t Test_port = TEST_PORT;
#else
-static const char Sock_name[] = "/tmp/hunt";
+static const char Sock_name[] = PATH_HUNTSOCKET;
#endif