summaryrefslogtreecommitdiffstats
path: root/avahi-common/watch-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-common/watch-test.c')
-rw-r--r--avahi-common/watch-test.c7
1 files changed, 4 insertions, 3 deletions
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;
}