From 0a1b1120ff30703ff6e661a7b7901380f0ce4192 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Mon, 18 Mar 2013 00:19:59 -0400 Subject: Dewarn with -DDEBUG It's sort of nice to be able to build with debugging. --- zhm/zhm.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'zhm/zhm.c') 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]; -- cgit v1.2.3