]> git.meshlink.io Git - catta/blobdiff - avahi-core/iface-linux.c
* rename all limit defs so that they end with _MAX
[catta] / avahi-core / iface-linux.c
index 4fc4addfd49cf6e37f4e48314a7f891ae6765ee3..985fe3f9ef1413f37e451ab69f6a4bd234eaf018 100644 (file)
@@ -124,8 +124,8 @@ static void netlink_callback(AvahiNetlink *nl, struct nlmsghdr *n, void* userdat
 
                     /* Fill in hardware (MAC) address */
                     hw->mac_address_size = RTA_PAYLOAD(a);
-                    if (hw->mac_address_size > AVAHI_MAX_MAC_ADDRESS)
-                        hw->mac_address_size = AVAHI_MAX_MAC_ADDRESS;
+                    if (hw->mac_address_size > AVAHI_MAC_ADDRESS_MAX)
+                        hw->mac_address_size = AVAHI_MAC_ADDRESS_MAX;
                     
                     memcpy(hw->mac_address, RTA_DATA(a), hw->mac_address_size);
                     break;