projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2e26c7
)
removed 2 compilation warnings
author
Alan Buxey
<alan.buxey@gmail.com>
Tue, 18 Sep 2012 19:53:42 +0000
(20:53 +0100)
committer
Arran 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
patch
|
blob
|
history
diff --git
a/src/lib/dhcp.c
b/src/lib/dhcp.c
index
012b7f6
..
57b5f3c
100644
(file)
--- 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;