]> git.meshlink.io Git - catta/blobdiff - examples/core-browse-services.c
move the rtnetlink.h/C99 check and always fail configure if it fails
[catta] / examples / core-browse-services.c
index 65c59fa8b26f9dfbdc846a31d6fe83b118344432..a36668ab425fe78e4118e7c74924fe43053c2043 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* PLEASE NOTE *
  * This file demonstrates how to use Avahi's core API, this is
  * the embeddable mDNS stack for embedded applications.
@@ -189,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;
     }