From ce94b61fc11d92f09a70cc59257b98dee5520255 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 20 Dec 2003 02:46:49 +0000 Subject: [PATCH] * sendto_kdc.c (default_debug_handler, put, putstr): Define only if DEBUG is defined. (DEBUG): Don't define. (krb5int_sendtokdc_debug_handler): Initialize to null if DEBUG is not defined. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15949 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 8 ++++++++ src/lib/krb5/os/sendto_kdc.c | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index ae9b51570..42ccb2af1 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,11 @@ +2003-12-19 Ken Raeburn + + * sendto_kdc.c (default_debug_handler, put, putstr): Define only + if DEBUG is defined. + (DEBUG): Don't define. + (krb5int_sendtokdc_debug_handler): Initialize to null if DEBUG is + not defined. + 2003-12-18 Jeffrey Altman * accessor.c: Add new functions for use by gssapi diff --git a/src/lib/krb5/os/sendto_kdc.c b/src/lib/krb5/os/sendto_kdc.c index 8e0f719a4..85b15769d 100644 --- a/src/lib/krb5/os/sendto_kdc.c +++ b/src/lib/krb5/os/sendto_kdc.c @@ -64,7 +64,6 @@ #ifdef DEBUG int krb5int_debug_sendto_kdc = 0; #define debug krb5int_debug_sendto_kdc -#endif static void default_debug_handler (const void *data, size_t len) { @@ -82,6 +81,9 @@ static void putstr(const char *str) { put(str, strlen(str)); } +#else +void (*krb5int_sendtokdc_debug_handler) (const void *, size_t) = 0; +#endif #define dprint krb5int_debug_fprint static void -- 2.26.2