summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2007-03-24 07:37:00 +0000
committerTrent Lloyd <lathiat@bur.st>2007-03-24 07:37:00 +0000
commit394b91f04a9a8901ec6896907cbe5ad998d4338e (patch)
treebf59809857d0415406c0594bd7d237147ef40d5c
parent6cf0986a8ef331ec09e8feac21997985d79cf913 (diff)
* avahi-common/address.h#AVAHI_IF_INDEX check should be interface > 0, not interface >= 0, otherwise the rest of Avahi gets upset, and when the rest of Avahi gets upset... (Closes #119)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1398 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--avahi-common/address.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/avahi-common/address.h b/avahi-common/address.h
index 58e6414..7f10a55 100644
--- a/avahi-common/address.h
+++ b/avahi-common/address.h
@@ -53,7 +53,7 @@ enum {
#define AVAHI_ADDRESS_STR_MAX 40 /* IPv6 Max = 4*8 + 7 + 1 for NUL */
/** Return TRUE if the specified interface index is valid */
-#define AVAHI_IF_VALID(ifindex) (((ifindex) >= 0) || ((ifindex) == AVAHI_PROTO_UNSPEC))
+#define AVAHI_IF_VALID(ifindex) (((ifindex) > 0) || ((ifindex) == AVAHI_PROTO_UNSPEC))
/** Return TRUE if the specified protocol is valid */
#define AVAHI_PROTO_VALID(protocol) (((protocol) == AVAHI_PROTO_INET) || ((protocol) == AVAHI_PROTO_INET6) || ((protocol) == AVAHI_PROTO_UNSPEC))