diff options
author | Trent Lloyd <lathiat@bur.st> | 2007-03-24 11:41:03 +0000 |
---|---|---|
committer | Trent Lloyd <lathiat@bur.st> | 2007-03-24 11:41:03 +0000 |
commit | 6474c4a0a75578090094a87be91bbccebcb56cd1 (patch) | |
tree | 3e37f028fae80ef3938ee203d0ff52e6b071ddeb /avahi-core | |
parent | 394b91f04a9a8901ec6896907cbe5ad998d4338e (diff) |
* Revert fix from R1398
* avahi-core/iface.c#avahi_interface_monitor_get_hw_interface - Change assert to idx >= 0, this is the correct fix incase a platform has interface indexes starting from 0
* Fix incorrect AVAHI_PROTO_UNSPEC to AVAHI_IF_UNSPEC
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1399 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core')
-rw-r--r-- | avahi-core/iface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/avahi-core/iface.c b/avahi-core/iface.c index 9fc8cb3..f90a61a 100644 --- a/avahi-core/iface.c +++ b/avahi-core/iface.c @@ -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); } |