aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-28 18:08:16 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-10-28 18:08:16 +0100
commit146aa15527ac8ff711109e942c54986adfb1ada4 (patch)
tree3b090f0c9648b4bd18906fab5df3dfbfa5f2c060
parente597658d8ef03fb93c7e00a0c5b8662a04f46f2b (diff)
downloadpacredir-146aa15527ac8ff711109e942c54986adfb1ada4.tar.gz
pacredir-146aa15527ac8ff711109e942c54986adfb1ada4.tar.zst
remove some unused code
-rw-r--r--pacredir.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/pacredir.c b/pacredir.c
index 0c997a6..2faab9a 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -81,14 +81,6 @@ static void browse_callback(AvahiServiceBrowser *b, AvahiIfIndex interface, Avah
fprintf(stderr, "NEW: service '%s' of type '%s' in domain '%s'\n", name, type, domain);
# endif
- /* We ignore the returned resolver object. In the callback
- * function we free it. If the server is terminated before
- * the callback function is called the server will free
- * the resolver for us. */
-
- /*if (avahi_service_resolver_new(c, interface, protocol, name, type, domain, AVAHI_PROTO_UNSPEC, 0, resolve_callback_new, c) == NULL)
- fprintf(stderr, "Failed to resolve service '%s': %s\n", name, avahi_strerror(avahi_client_errno(c))); */
-
if (strcmp(host, localname) == 0)
goto out;
@@ -132,8 +124,6 @@ out:
fprintf(stderr, "REMOVE: service '%s' of type '%s' in domain '%s'\n", name, type, domain);
# endif
- /*if (avahi_service_resolver_new(c, interface, protocol, name, type, domain, AVAHI_PROTO_UNSPEC, 0, resolve_callback_remove, c) == NULL)
- fprintf(stderr, "Failed to resolve service '%s': %s\n", name, avahi_strerror(avahi_client_errno(c))); */
while (tmphosts->host != NULL) {
if (strcmp(tmphosts->host, host) == 0) {
printf("Marking service %s on host %s offline\n", type, host);