summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--h/zephyr/zephyr.h3
-rw-r--r--lib/Zinternal.c2
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;