From c9cf9be7745bc11ac8aa66f18e440aac56292ae8 Mon Sep 17 00:00:00 2001 From: Alan Buxey Date: Tue, 18 Sep 2012 20:53:42 +0100 Subject: [PATCH] removed 2 compilation warnings macaddr->length and sizeof are unsigned longs --- src/lib/dhcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/dhcp.c b/src/lib/dhcp.c index 012b7f6..57b5f3c 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 %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; -- 2.1.4