From b56e2613523c26d3d8de7473c00cc12c23adfec2 Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 29 Mar 2014 21:27:08 +0000 Subject: Move definitions to the file they're used in. --- hunt/huntd/driver.c | 11 +++++++++-- hunt/huntd/pathname.c | 11 ++--------- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'hunt') diff --git a/hunt/huntd/driver.c b/hunt/huntd/driver.c index 0c3feae0..e525aec6 100644 --- a/hunt/huntd/driver.c +++ b/hunt/huntd/driver.c @@ -1,4 +1,4 @@ -/* $NetBSD: driver.c,v 1.27 2014/03/29 20:35:30 dholland Exp $ */ +/* $NetBSD: driver.c,v 1.28 2014/03/29 21:27:08 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.27 2014/03/29 20:35:30 dholland Exp $"); +__RCSID("$NetBSD: driver.c,v 1.28 2014/03/29 21:27:08 dholland Exp $"); #endif /* not lint */ #include @@ -46,6 +46,13 @@ __RCSID("$NetBSD: driver.c,v 1.27 2014/03/29 20:35:30 dholland Exp $"); #include"hunt.h" +#ifdef INTERNET +u_short Test_port = TEST_PORT; +#else +char *Sock_name = "/tmp/hunt"; +char *Stat_name = "/tmp/hunt.stats"; +#endif + static SOCKET Daemon; #ifdef INTERNET diff --git a/hunt/huntd/pathname.c b/hunt/huntd/pathname.c index f66daa56..b44b7deb 100644 --- a/hunt/huntd/pathname.c +++ b/hunt/huntd/pathname.c @@ -1,4 +1,4 @@ -/* $NetBSD: pathname.c,v 1.8 2014/03/29 21:25:35 dholland Exp $ */ +/* $NetBSD: pathname.c,v 1.9 2014/03/29 21:27:08 dholland Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,16 +32,9 @@ #include #ifndef lint -__RCSID("$NetBSD: pathname.c,v 1.8 2014/03/29 21:25:35 dholland Exp $"); +__RCSID("$NetBSD: pathname.c,v 1.9 2014/03/29 21:27:08 dholland Exp $"); #endif /* not lint */ #include #include "hunt_common.h" - -#ifdef INTERNET -u_short Test_port = TEST_PORT; -#else -char *Sock_name = "/tmp/hunt"; -char *Stat_name = "/tmp/hunt.stats"; -#endif -- cgit v1.2.3-56-ge451