]> git.meshlink.io Git - catta/blobdiff - avahi-core/querier.c
* add support to browse for domains in avahi-browse
[catta] / avahi-core / querier.c
index 51b2ce663233c8942d53e1d6c1d75c644aad5779..41acc24bf007c157d23316ceba9697346efd6f7a 100644 (file)
@@ -58,7 +58,7 @@ void avahi_querier_free(AvahiQuerier *q) {
     avahi_free(q);
 }
 
-static void querier_elapse_callback(AvahiTimeEvent *e, void *userdata) {
+static void querier_elapse_callback(AVAHI_GCC_UNUSED AvahiTimeEvent *e, void *userdata) {
     AvahiQuerier *q = userdata;
     struct timeval tv;
     
@@ -81,7 +81,7 @@ void avahi_querier_add(AvahiInterface *i, AvahiKey *key, struct timeval *ret_cti
     
     assert(i);
     assert(key);
-
+    
     if ((q = avahi_hashmap_lookup(i->queriers_by_key, key))) {
         /* Someone is already browsing for records of this RR key */
         q->n_used++;
@@ -126,6 +126,7 @@ void avahi_querier_remove(AvahiInterface *i, AvahiKey *key) {
     }
 
     assert(q->n_used >= 1);
+
     if ((--q->n_used) <= 0)
         avahi_querier_free(q);
 }