summaryrefslogtreecommitdiff
path: root/zhm/zhm.c
diff options
context:
space:
mode:
authorGravatar Jeffrey Hutzelman <jhutz@cmu.edu>2013-03-18 00:19:59 -0400
committerGravatar Jeffrey Hutzelman <jhutz@cmu.edu>2013-03-18 01:59:01 -0400
commit0a1b1120ff30703ff6e661a7b7901380f0ce4192 (patch)
tree82448436422c1c4e4f3fc9b36c521614a4b0d885 /zhm/zhm.c
parent16ed769a51c69ae99123d3e64d1f914bd20d7cb8 (diff)
Dewarn with -DDEBUG
It's sort of nice to be able to build with debugging.
Diffstat (limited to 'zhm/zhm.c')
-rw-r--r--zhm/zhm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/zhm/zhm.c b/zhm/zhm.c
index cbdcf6d..ec4696b 100644
--- a/zhm/zhm.c
+++ b/zhm/zhm.c
@@ -46,7 +46,9 @@ static RETSIGTYPE deactivate(int);
static RETSIGTYPE terminate(int);
static void choose_server(void);
static void init_hm(void);
+#ifndef DEBUG
static void detach(void);
+#endif
static void send_stats(ZNotice_t *, struct sockaddr_in *);
static char *strsave(const char *);
@@ -361,7 +363,9 @@ init_hm(void)
{
struct servent *sp;
Code_t ret;
+#ifndef DEBUG
FILE *fp;
+#endif
#ifdef _POSIX_VERSION
struct sigaction sa;
#endif
@@ -458,6 +462,7 @@ init_hm(void)
#endif
}
+#ifndef DEBUG
static void
detach(void)
{
@@ -497,6 +502,7 @@ detach(void)
setsid();
#endif
}
+#endif
static char version[BUFSIZ];