summaryrefslogtreecommitdiffstats
path: root/avahi-core/avahi-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-core/avahi-test.c')
-rw-r--r--avahi-core/avahi-test.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/avahi-core/avahi-test.c b/avahi-core/avahi-test.c
index 669ca5b..5953937 100644
--- a/avahi-core/avahi-test.c
+++ b/avahi-core/avahi-test.c
@@ -40,9 +40,13 @@ static gboolean quit_timeout(gpointer data) {
return FALSE;
}
+static void dump_line(const gchar *text, gpointer userdata) {
+ printf("%s\n", text);
+}
+
static gboolean dump_timeout(gpointer data) {
AvahiServer *Avahi = data;
- avahi_server_dump(Avahi, stdout);
+ avahi_server_dump(Avahi, dump_line, NULL);
return TRUE;
}