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
229831d19f
commit
6506d09c7b
@ -485,8 +485,8 @@ rarp_check(u_char *p, u_int len)
|
||||
struct ether_arp *ap = (struct ether_arp *)(p + sizeof(*ep));
|
||||
|
||||
if (len < sizeof(*ep) + sizeof(*ap)) {
|
||||
syslog(LOG_ERR, "truncated request, got %d, expected %d",
|
||||
len, (int)(sizeof(*ep) + sizeof(*ap)));
|
||||
syslog(LOG_ERR, "truncated request, got %u, expected %lu",
|
||||
len, (u_long)(sizeof(*ep) + sizeof(*ap)));
|
||||
return 0;
|
||||
}
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user