remove compilation error messages (As noted by Alan Buxey)
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 15 Oct 2012 13:47:42 +0000 (14:47 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 15 Oct 2012 14:07:57 +0000 (15:07 +0100)
removes the following at compile time:

dhcp.c: In function ‘fr_dhcp_add_arp_entry’:
dhcp.c:1561: warning: format ‘%lu’ expects type ‘long unsigned int’,
but argument 2 has type ‘unsigned int’
dhcp.c:1561: warning: format ‘%lu’ expects type ‘long unsigned int’,
but argument 3 has type ‘size_t’

src/lib/dhcp.c

index 57b5f3c..58e5456 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 %lu octets for "
-                                  "Client Hardware Address (got %lu octets)\n",
+               fr_strerror_printf("ERROR: DHCP only supports up to %u octets for "
+                                  "Client Hardware Address (got %zu octets)\n",
                                   sizeof(req.arp_ha.sa_data),
                                   macaddr->length);
                return -1;