diff options
author | Jeffrey Hutzelman <jhutz@cmu.edu> | 2013-03-18 00:19:59 -0400 |
---|---|---|
committer | Jeffrey Hutzelman <jhutz@cmu.edu> | 2013-03-18 01:59:01 -0400 |
commit | 0a1b1120ff30703ff6e661a7b7901380f0ce4192 (patch) | |
tree | 82448436422c1c4e4f3fc9b36c521614a4b0d885 /zhm | |
parent | 16ed769a51c69ae99123d3e64d1f914bd20d7cb8 (diff) |
Dewarn with -DDEBUG
It's sort of nice to be able to build with debugging.
Diffstat (limited to 'zhm')
-rw-r--r-- | zhm/queue.c | 6 | ||||
-rw-r--r-- | zhm/zhm.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/zhm/queue.c b/zhm/queue.c index 20679b0..333bf3e 100644 --- a/zhm/queue.c +++ b/zhm/queue.c @@ -37,7 +37,7 @@ static void queue_timeout(void *arg); int rexmit_times[] = { 2, 2, 4, 4, 8, -1 }; #ifdef DEBUG -Code_t dump_queue(void); +static void dump_queue(void); #endif void @@ -172,11 +172,11 @@ disable_queue_retransmits(void) } #ifdef DEBUG -static Code_t +static void dump_queue(void) { Queue *entry; - void *mp; + char *mp; int ml; DPR("Dumping queue...\n"); @@ -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]; |