From d68819ff6dba074f1c5fac5fadd52fcfe154de24 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 15 May 2006 15:17:03 +0000 Subject: [PATCH] sunstudio cc compat (contributed by Padraig O'Briain) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1219 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-client/client-test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/avahi-client/client-test.c b/avahi-client/client-test.c index ac5546d..7d30651 100644 --- a/avahi-client/client-test.c +++ b/avahi-client/client-test.c @@ -59,7 +59,7 @@ static void avahi_domain_browser_callback( AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { - printf ("DOMAIN-BROWSER: Callback on %p, interface (%d), protocol (%d), event (%d), domain (%s), data (%s)\n", (void*) b, interface, protocol, event, domain, (char*)userdata); + printf ("DOMAIN-BROWSER: Callback on %p, interface (%d), protocol (%d), event (%d), domain (%s), data (%s)\n", (void*) b, interface, protocol, event, domain ? domain : "NULL", (char*)userdata); } static void avahi_service_resolver_callback( @@ -102,7 +102,7 @@ static void avahi_service_browser_callback ( AvahiServiceResolver *sr; - printf ("SERVICE-BROWSER: Callback on %p, interface (%d), protocol (%d), event (%d), name (%s), type (%s), domain (%s), data (%s)\n", (void*) b, interface, protocol, event, name, type, domain, (char*)userdata); + printf ("SERVICE-BROWSER: Callback on %p, interface (%d), protocol (%d), event (%d), name (%s), type (%s), domain (%s), data (%s)\n", (void*) b, interface, protocol, event, name ? name : "NULL", type, domain ? domain : "NULL", (char*)userdata); if (b && name) { @@ -121,7 +121,7 @@ static void avahi_service_type_browser_callback ( AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { - printf ("SERVICE-TYPE-BROWSER: Callback on %p, interface (%d), protocol (%d), event (%d), type (%s), domain (%s), data (%s)\n", (void*) b, interface, protocol, event, type, domain, (char*)userdata); + printf ("SERVICE-TYPE-BROWSER: Callback on %p, interface (%d), protocol (%d), event (%d), type (%s), domain (%s), data (%s)\n", (void*) b, interface, protocol, event, type ? type : "NULL", domain ? domain : "NULL", (char*)userdata); } static void avahi_address_resolver_callback ( -- 2.39.5