diff options
author | dillon <dillon@FreeBSD.org> | 2001-10-29 02:19:19 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-10-29 02:19:19 +0000 |
commit | 981dfd6cd99236b6e8e4441be52bbb839739f838 (patch) | |
tree | 876c03e7d7b8d5ebbca9dac04a8067ab1f7e6821 /sys/netinet/ip_mroute.c | |
parent | c7f4e768471c41e9a6b994986d89daf5fc0f0cb9 (diff) | |
download | FreeBSD-src-981dfd6cd99236b6e8e4441be52bbb839739f838.zip FreeBSD-src-981dfd6cd99236b6e8e4441be52bbb839739f838.tar.gz |
fix int argument used in printf w/ %ld (cast to long)
Diffstat (limited to 'sys/netinet/ip_mroute.c')
-rw-r--r-- | sys/netinet/ip_mroute.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index c8f5289..254200e 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -1197,7 +1197,8 @@ X_ip_mforward(ip, ifp, m, imo) if (rsvpdebug && ip->ip_p == IPPROTO_RSVP) { vifp = viftable + vifi; printf("Sending IPPROTO_RSVP from %lx to %lx on vif %d (%s%s%d)\n", - ntohl(ip->ip_src.s_addr), ntohl(ip->ip_dst.s_addr), vifi, + (long)ntohl(ip->ip_src.s_addr), (long)ntohl(ip->ip_dst.s_addr), + vifi, (vifp->v_flags & VIFF_TUNNEL) ? "tunnel on " : "", vifp->v_ifp->if_name, vifp->v_ifp->if_unit); } @@ -1205,7 +1206,7 @@ X_ip_mforward(ip, ifp, m, imo) } if (rsvpdebug && ip->ip_p == IPPROTO_RSVP) { printf("Warning: IPPROTO_RSVP from %lx to %lx without vif option\n", - ntohl(ip->ip_src.s_addr), ntohl(ip->ip_dst.s_addr)); + (long)ntohl(ip->ip_src.s_addr), (long)ntohl(ip->ip_dst.s_addr)); if(!imo) printf("In fact, no options were specified at all\n"); } |