From 2b4aa634785e4166c5db51d8712041ea68e2f2a1 Mon Sep 17 00:00:00 2001 From: Jonathan Lemon Date: Sat, 16 Jun 2001 18:55:13 +0000 Subject: [PATCH] Comply with POSIX rules: o Use %u for printing u_int. o Cast sizeof() to u_long, and print with %lu Reviewed by: wollman --- usr.sbin/rarpd/rarpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c index 430241e572a3..24effa4d0019 100644 --- a/usr.sbin/rarpd/rarpd.c +++ b/usr.sbin/rarpd/rarpd.c @@ -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; } /*