From b24cbe87f78de4fda81ed0fc5502275e77d51a28 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Wed, 2 Feb 2011 05:26:22 +0000 Subject: make -DZ_DEBUG work --- h/zephyr/zephyr.h | 3 ++- lib/Zinternal.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/h/zephyr/zephyr.h b/h/zephyr/zephyr.h index f23bb19..99874fd 100644 --- a/h/zephyr/zephyr.h +++ b/h/zephyr/zephyr.h @@ -257,7 +257,8 @@ struct sockaddr_in ZGetDestAddr (void); #ifdef Z_DEBUG -void ZSetDebug (void (*)(const char *, va_list, void *), void *); +void ZSetDebug (void (*)(const char *, va_list, void *), char *); +void Z_debug_stderr(const char *format, va_list args, void *closure); #define ZSetDebug(proc,closure) (__Z_debug_print=(proc), \ __Z_debug_print_closure=(closure), \ (void) 0) diff --git a/lib/Zinternal.c b/lib/Zinternal.c index 119f731..00502a8 100644 --- a/lib/Zinternal.c +++ b/lib/Zinternal.c @@ -1308,7 +1308,7 @@ Z_debug_stderr(const char *format, #undef ZSetDebug void -ZSetDebug(void (*proc) __P((const char *, va_list, void *)), +ZSetDebug(void (*proc)(const char *, va_list, void *), char *arg) { __Z_debug_print = proc; -- cgit v1.2.3