diff options
author | dfr <dfr@FreeBSD.org> | 1998-11-15 18:10:14 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-11-15 18:10:14 +0000 |
commit | 7e9b66423254bcfc0c2b64f1fe77d2f3ffb982d7 (patch) | |
tree | c64a1ac96b5d5cc71ed2b21bb7b763d81e764376 /sys | |
parent | c804c217bbb47d89392d4f961efbe41ee0fc1346 (diff) | |
download | FreeBSD-src-7e9b66423254bcfc0c2b64f1fe77d2f3ffb982d7.zip FreeBSD-src-7e9b66423254bcfc0c2b64f1fe77d2f3ffb982d7.tar.gz |
Fix printf format errors on alpha.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_input.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index f32f6f5..4af42f0 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 - * $Id: ip_input.c,v 1.104 1998/10/27 09:19:03 dfr Exp $ + * $Id: ip_input.c,v 1.105 1998/11/11 21:17:59 dg Exp $ * $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $ */ @@ -1242,7 +1242,7 @@ ip_srcroute() *(mtod(m, struct in_addr *)) = *p--; #ifdef DIAGNOSTIC if (ipprintfs) - printf(" hops %lx", ntohl(mtod(m, struct in_addr *)->s_addr)); + printf(" hops %x", (int)ntohl(mtod(m, struct in_addr *)->s_addr)); #endif /* @@ -1262,7 +1262,7 @@ ip_srcroute() while (p >= ip_srcrt.route) { #ifdef DIAGNOSTIC if (ipprintfs) - printf(" %lx", ntohl(q->s_addr)); + printf(" %x", (int)ntohl(q->s_addr)); #endif *q++ = *p--; } @@ -1272,7 +1272,7 @@ ip_srcroute() *q = ip_srcrt.dst; #ifdef DIAGNOSTIC if (ipprintfs) - printf(" %lx\n", ntohl(q->s_addr)); + printf(" %x\n", (int)ntohl(q->s_addr)); #endif return (m); } |