X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-common%2Fwatch-test.c;h=921a8f70f468647ea7c7af6b1b1f54e2335378e9;hb=d322a943be5387a539f8f3ea3a19a7e2ed5a55a2;hp=ffb214982da3ca6eb4b496738fcedd20a7aea78a;hpb=769c00f228ba0d37217aaf1424dedde390e7a01c;p=catta diff --git a/avahi-common/watch-test.c b/avahi-common/watch-test.c index ffb2149..921a8f7 100644 --- a/avahi-common/watch-test.c +++ b/avahi-common/watch-test.c @@ -78,9 +78,10 @@ int main(int argc, char *argv[]) { api->timeout_new(api, &tv, wakeup, NULL); /* Our main loop */ - for (;;) - if (avahi_simple_poll_iterate(simple_poll, -1) != 0) - break; + avahi_simple_poll_loop(simple_poll); + + + avahi_simple_poll_free(simple_poll); return 0; }