Comply with POSIX rules:
o Use %u for printing u_int. o Cast sizeof() to u_long, and print with %lu Reviewed by: wollman
This commit is contained in:
parent
1c8d1174b7
commit
2b4aa63478
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78357
@ -485,8 +485,8 @@ rarp_check(u_char *p, u_int len)
|
|||||||
struct ether_arp *ap = (struct ether_arp *)(p + sizeof(*ep));
|
struct ether_arp *ap = (struct ether_arp *)(p + sizeof(*ep));
|
||||||
|
|
||||||
if (len < sizeof(*ep) + sizeof(*ap)) {
|
if (len < sizeof(*ep) + sizeof(*ap)) {
|
||||||
syslog(LOG_ERR, "truncated request, got %d, expected %d",
|
syslog(LOG_ERR, "truncated request, got %u, expected %lu",
|
||||||
len, (int)(sizeof(*ep) + sizeof(*ap)));
|
len, (u_long)(sizeof(*ep) + sizeof(*ap)));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user