diff options
author | dfr <dfr@FreeBSD.org> | 1998-11-16 08:27:36 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-11-16 08:27:36 +0000 |
commit | 27d260c1d9912940330e3b5b42f10508cd9db0d6 (patch) | |
tree | b294ff0b034c124b4eb3813d704aa001e74f9c6f | |
parent | 4e499e78ea946fce6782daf5177d695ff3a28074 (diff) | |
download | FreeBSD-src-27d260c1d9912940330e3b5b42f10508cd9db0d6.zip FreeBSD-src-27d260c1d9912940330e3b5b42f10508cd9db0d6.tar.gz |
Make the previous fix more portable.
Requested by: bde
-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 4af42f0..364fd23 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.105 1998/11/11 21:17:59 dg Exp $ + * $Id: ip_input.c,v 1.106 1998/11/15 18:10:14 dfr 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 %x", (int)ntohl(mtod(m, struct in_addr *)->s_addr)); + printf(" hops %lx", (u_long)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(" %x", (int)ntohl(q->s_addr)); + printf(" %lx", (u_long)ntohl(q->s_addr)); #endif *q++ = *p--; } @@ -1272,7 +1272,7 @@ ip_srcroute() *q = ip_srcrt.dst; #ifdef DIAGNOSTIC if (ipprintfs) - printf(" %x\n", (int)ntohl(q->s_addr)); + printf(" %lx\n", (u_long)ntohl(q->s_addr)); #endif return (m); } |