removed 2 compilation warnings
authorAlan Buxey <alan.buxey@gmail.com>
Tue, 18 Sep 2012 19:53:42 +0000 (20:53 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 18 Sep 2012 21:44:00 +0000 (22:44 +0100)
macaddr->length and sizeof are unsigned longs

src/lib/dhcp.c

index 012b7f6..57b5f3c 100644 (file)
@@ -1555,8 +1555,8 @@ int fr_dhcp_add_arp_entry(int fd, const char *interface,
        struct arpreq req;
 
        if (macaddr->length > sizeof (req.arp_ha.sa_data)) {
-               fr_strerror_printf("ERROR: DHCP only supports up to %d octets for "
-                                  "Client Hardware Address (got %d octets)\n",
+               fr_strerror_printf("ERROR: DHCP only supports up to %lu octets for "
+                                  "Client Hardware Address (got %lu octets)\n",
                                   sizeof(req.arp_ha.sa_data),
                                   macaddr->length);
                return -1;