]> git.meshlink.io Git - catta/blobdiff - avahi-core/iface.c
Make the poof algorithm only positive if 4 unanswered queries each
[catta] / avahi-core / iface.c
index 9fc8cb3293e69463e660eec82fb080c68635bfea..8098de4a38bb335465feaebbab7c9af5d0947755 100644 (file)
@@ -539,7 +539,7 @@ AvahiInterface* avahi_interface_monitor_get_interface(AvahiInterfaceMonitor *m,
 
 AvahiHwInterface* avahi_interface_monitor_get_hw_interface(AvahiInterfaceMonitor *m, AvahiIfIndex idx) {
     assert(m);
-    assert(idx > 0);
+    assert(idx >= 0);
 
     return avahi_hashmap_lookup(m->hashmap, &idx);
 }
@@ -799,7 +799,7 @@ AvahiIfIndex avahi_find_interface_for_address(AvahiInterfaceMonitor *m, const Av
     assert(m);
 
     /* Some stupid OS don't support passing the interface index when a
-     * packet is recieved. We have to work around that limitation by
+     * packet is received. We have to work around that limitation by
      * looking for an interface that has the incoming address
      * attached. This is sometimes ambiguous, but we have to live with
      * it. */