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:
jlemon 2001-06-16 18:55:13 +00:00
parent 229831d19f
commit 6506d09c7b

View File

@ -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;
}
/*