]> git.meshlink.io Git - catta/blobdiff - examples/core-browse-services.c
* remove AVAHI_PUBLISH_IS_PROXY, it was a bad idea
[catta] / examples / core-browse-services.c
index 57fafe46f3263f6b4aff3cfdefa4437ee02e8a2f..db2dcb9b19e67a3059bcb29d5324d1c7b8c8409d 100644 (file)
@@ -90,7 +90,7 @@ static void resolve_callback(
                     host_name, port, a,
                     t,
                     avahi_string_list_get_service_cookie(txt),
-                    avahi_server_is_service_local(server, interface, protocol, name, type, domain),
+                    !!(flags & AVAHI_LOOKUP_RESULT_LOCAL),
                     !!(flags & AVAHI_LOOKUP_RESULT_WIDE_AREA),
                     !!(flags & AVAHI_LOOKUP_RESULT_MULTICAST),
                     !!(flags & AVAHI_LOOKUP_RESULT_CACHED));
@@ -195,9 +195,7 @@ int main(int argc, char*argv[]) {
     }
     
     /* Run the main loop */
-    for (;;)
-        if (avahi_simple_poll_iterate(simple_poll, -1) != 0)
-            break;
+    avahi_simple_poll_loop(simple_poll);
     
     ret = 0;