From: Arran Cudbard-Bell Date: Mon, 15 Oct 2012 13:47:42 +0000 (+0100) Subject: remove compilation error messages (As noted by Alan Buxey) X-Git-Tag: release_3_0_0_beta1~1660^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df5ebfae4e20ad523dd4eb0be9c8e8133bed5b0b;p=thirdparty%2Ffreeradius-server.git remove compilation error messages (As noted by Alan Buxey) 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’ --- diff --git a/src/lib/dhcp.c b/src/lib/dhcp.c index 57b5f3c11a6..58e5456995b 100644 --- a/src/lib/dhcp.c +++ b/src/lib/dhcp.c @@ -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;