diff options
author | Christian Hesse <mail@eworm.de> | 2013-10-28 18:08:16 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-10-28 18:08:16 +0100 |
commit | 146aa15527ac8ff711109e942c54986adfb1ada4 (patch) | |
tree | 3b090f0c9648b4bd18906fab5df3dfbfa5f2c060 | |
parent | e597658d8ef03fb93c7e00a0c5b8662a04f46f2b (diff) | |
download | paccache-146aa15527ac8ff711109e942c54986adfb1ada4.tar.gz paccache-146aa15527ac8ff711109e942c54986adfb1ada4.tar.zst |
remove some unused code
-rw-r--r-- | pacredir.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -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); |