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’
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;