]> git.meshlink.io Git - catta/commitdiff
let core-browse example look for the type used by core-publish example
authorSven M. Hallberg <pesco@khjk.org>
Mon, 18 Aug 2014 16:46:17 +0000 (18:46 +0200)
committerSven M. Hallberg <pesco@khjk.org>
Mon, 18 Aug 2014 16:46:17 +0000 (18:46 +0200)
examples/core-browse-services.c

index e062e3e097737f1ed2173de06ab6419839c0fdc1..a36668ab425fe78e4118e7c74924fe43053c2043 100644 (file)
@@ -187,7 +187,7 @@ int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char*argv[]) {
     }
 
     /* Create the service browser */
-    if (!(sb = avahi_s_service_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_http._tcp", NULL, 0, browse_callback, server))) {
+    if (!(sb = avahi_s_service_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_ipp._tcp", NULL, 0, browse_callback, server))) {
         fprintf(stderr, "Failed to create service browser: %s\n", avahi_strerror(avahi_server_errno(server)));
         goto fail;
     }