X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fcore-browse-services.c;h=e8f4aad0a72d6f22855fa50f21cc2380c696fd51;hb=d80c70d36363762e0cf1534e654e122d741fbc5d;hp=44f8ece0f48fb8d346d52f2f73d18538cec89d8b;hpb=46000e498262feded366290aa16746218b013370;p=catta diff --git a/examples/core-browse-services.c b/examples/core-browse-services.c index 44f8ece..e8f4aad 100644 --- a/examples/core-browse-services.c +++ b/examples/core-browse-services.c @@ -48,7 +48,7 @@ static CattaServer *server = NULL; static void resolve_callback( CattaSServiceResolver *r, - CATTA_GCC_UNUSED CattaIfIndex interface, + CATTA_GCC_UNUSED CattaIfIndex iface, CATTA_GCC_UNUSED CattaProtocol protocol, CattaResolverEvent event, const char *name, @@ -101,7 +101,7 @@ static void resolve_callback( static void browse_callback( CattaSServiceBrowser *b, - CattaIfIndex interface, + CattaIfIndex iface, CattaProtocol protocol, CattaBrowserEvent event, const char *name, @@ -131,7 +131,7 @@ static void browse_callback( the callback function is called the server will free the resolver for us. */ - if (!(catta_s_service_resolver_new(s, interface, protocol, name, type, domain, CATTA_PROTO_UNSPEC, 0, resolve_callback, s))) + if (!(catta_s_service_resolver_new(s, iface, protocol, name, type, domain, CATTA_PROTO_UNSPEC, 0, resolve_callback, s))) fprintf(stderr, "Failed to resolve service '%s': %s\n", name, catta_strerror(catta_server_errno(s))); break;