X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fcore-browse-services.c;h=53b18eeebb7936191e6561c7ebb6b6a611b6a9ad;hb=8f106ca9eb014411a4276dd0ab87efce8921e332;hp=db2dcb9b19e67a3059bcb29d5324d1c7b8c8409d;hpb=6b391bb81f0dce0193a722254016b26c12a17643;p=catta diff --git a/examples/core-browse-services.c b/examples/core-browse-services.c index db2dcb9..53b18ee 100644 --- a/examples/core-browse-services.c +++ b/examples/core-browse-services.c @@ -5,7 +5,7 @@ * the embeddable mDNS stack for embedded applications. * * End user applications should *not* use this API and should use - * the DBUS or C APIs, please see + * the D-Bus or C APIs, please see * client-browse-services.c and glib-integration.c * * I repeat, you probably do *not* want to use this example. @@ -50,8 +50,8 @@ static AvahiServer *server = NULL; static void resolve_callback( AvahiSServiceResolver *r, - AvahiIfIndex interface, - AvahiProtocol protocol, + AVAHI_GCC_UNUSED AvahiIfIndex interface, + AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, @@ -61,7 +61,7 @@ static void resolve_callback( uint16_t port, AvahiStringList *txt, AvahiLookupResultFlags flags, - void* userdata) { + AVAHI_GCC_UNUSED void* userdata) { assert(r); @@ -109,7 +109,7 @@ static void browse_callback( const char *name, const char *type, const char *domain, - AvahiLookupResultFlags flags, + AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void* userdata) { AvahiServer *s = userdata; @@ -149,7 +149,7 @@ static void browse_callback( } } -int main(int argc, char*argv[]) { +int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char*argv[]) { AvahiServerConfig config; AvahiSServiceBrowser *sb = NULL; int error;