diff options
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]; |