diff options
author | Rob Landley | 2006-06-19 03:20:03 +0000 |
---|---|---|
committer | Rob Landley | 2006-06-19 03:20:03 +0000 |
commit | 7a260f01ce6841658810dc9f0ff0706558a10d7f (patch) | |
tree | f98b6d5bf4c3d48dd54db386c29d39ab26e1463e /networking | |
parent | 290fcb4213ae5ab9ec6cb228dd64ef2c9f02d26d (diff) | |
download | busybox-7a260f01ce6841658810dc9f0ff0706558a10d7f.zip busybox-7a260f01ce6841658810dc9f0ff0706558a10d7f.tar.gz |
Make some 64 bit warnings go away on x86-64.
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ping6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ping6.c b/networking/ping6.c index 1cff59d..c15ea5c 100644 --- a/networking/ping6.c +++ b/networking/ping6.c @@ -311,7 +311,7 @@ static void unpack(char *packet, int sz, struct sockaddr_in6 *from, int hoplimit return; printf("%d bytes from %s: icmp6_seq=%u", sz, - inet_ntop(AF_INET6, (struct in_addr6 *) &pingaddr.sin6_addr, + inet_ntop(AF_INET6, &pingaddr.sin6_addr, buf, sizeof(buf)), icmppkt->icmp6_seq); printf(" ttl=%d time=%lu.%lu ms", hoplimit, @@ -392,7 +392,7 @@ static void ping(const char *host) printf("PING %s (%s): %d data bytes\n", hostent->h_name, - inet_ntop(AF_INET6, (struct in_addr6 *) &pingaddr.sin6_addr, + inet_ntop(AF_INET6, &pingaddr.sin6_addr, buf, sizeof(buf)), datalen); |