diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-23 09:28:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-23 09:28:58 +0000 |
commit | bf059e17b60556bb4e002859d30890aa916423f7 (patch) | |
tree | d3a1e440d0919c7aacfa068fe13232d5b22b1bb3 /usr.sbin | |
parent | a79e6f37794a9d6ca4c52553315475c4db0a8571 (diff) |
long vs int
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/traceroute/traceroute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/traceroute/traceroute.c b/usr.sbin/traceroute/traceroute.c index 5f5d01fac7d..c87a977568a 100644 --- a/usr.sbin/traceroute/traceroute.c +++ b/usr.sbin/traceroute/traceroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: traceroute.c,v 1.23 1997/06/12 01:12:27 mickey Exp $ */ +/* $OpenBSD: traceroute.c,v 1.24 1997/06/23 09:28:57 deraadt Exp $ */ /* $NetBSD: traceroute.c,v 1.10 1995/05/21 15:50:45 mycroft Exp $ */ /*- @@ -507,7 +507,7 @@ main(argc, argv) (void) fflush(stderr); for (ttl = 1; ttl <= max_ttl; ++ttl) { - u_long lastaddr = 0; + in_addr_t lastaddr = 0; int got_there = 0; int unreachable = 0; int timeout = 0; @@ -797,13 +797,13 @@ packet_ok(buf, cc, from, seq) #ifndef ARCHAIC if (verbose) { int i; - u_long *lp = (u_long *)&icp->icmp_ip; + in_addr_t *lp = (in_addr_t *)&icp->icmp_ip; Printf("\n%d bytes from %s", cc, inet_ntoa(from->sin_addr)); Printf(" to %s", inet_ntoa(ip->ip_dst)); Printf(": icmp type %d (%s) code %d\n", type, pr_type(type), icp->icmp_code); - for (i = 4; i < cc ; i += sizeof(long)) + for (i = 4; i < cc ; i += sizeof(in_addr_t)) Printf("%2d: x%8.8lx\n", i, *lp++); } #endif ARCHAIC |