]> git.meshlink.io Git - catta/blobdiff - avahi-core/avahi-test.c
* implement record updating through the new flags AVAHI_PUBLISH_UPDATE
[catta] / avahi-core / avahi-test.c
index 46e68d55710c5ab57846c5bbdfbf0e7080446bba..cf8bd3b83c232aedb05913ff8b6bdced499acc12 100644 (file)
@@ -361,9 +361,7 @@ int main(int argc, char *argv[]) {
     avahi_elapse_time(&tv, 1000*60, 0);
     poll_api->timeout_new(poll_api, &tv, quit_timeout_callback, simple_poll);
 
-    for (;;)
-        if (avahi_simple_poll_iterate(simple_poll, -1) != 0)
-            break;
+    avahi_simple_poll_loop(simple_poll);
 
     avahi_s_record_browser_free(r);
     avahi_s_host_name_resolver_free(hnr);