aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-11-05 13:25:15 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-11-05 13:25:15 +0100
commit0fbabe67712b932226fc58ee4af279d7005e82f1 (patch)
tree96d70c38399967b58431094b3b33a4bb61b0c794
parent59ea0fca10873d36cb614ab2b6601a353b12bd72 (diff)
downloadpaccache-0fbabe67712b932226fc58ee4af279d7005e82f1.tar.gz
paccache-0fbabe67712b932226fc58ee4af279d7005e82f1.tar.zst
do not handle client to browse_callback
-rw-r--r--pacredir.c4
1 files 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;
}