From 0fbabe67712b932226fc58ee4af279d7005e82f1 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 5 Nov 2013 13:25:15 +0100 Subject: do not handle client to browse_callback --- pacredir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pacredir.c b/pacredir.c index f51a47a..7249032 100644 --- a/pacredir.c +++ b/pacredir.c @@ -512,13 +512,13 @@ int main(int argc, char ** argv) { } /* create the service browser for PACSERVE */ - if ((pacserve = avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, PACSERVE, NULL, 0, browse_callback, client)) == NULL) { + if ((pacserve = avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, PACSERVE, NULL, 0, browse_callback, NULL)) == NULL) { write_log(stderr, "Failed to create service browser: %s\n", avahi_strerror(avahi_client_errno(client))); goto fail; } /* create the service browser for PACDBSERVE */ - if ((pacdbserve = avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, PACDBSERVE, NULL, 0, browse_callback, client)) == NULL) { + if ((pacdbserve = avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, PACDBSERVE, NULL, 0, browse_callback, NULL)) == NULL) { write_log(stderr, "Failed to create service browser: %s\n", avahi_strerror(avahi_client_errno(client))); goto fail; } -- cgit v1.2.3-70-g09d2