summaryrefslogtreecommitdiff
path: root/networking/traceroute.c
diff options
context:
space:
mode:
authorDenys Vlasenko2011-01-20 12:13:23 +0100
committerDenys Vlasenko2011-01-20 12:13:23 +0100
commitdd169e84683aa7be3604d491f1c34ab657973365 (patch)
tree58e29fb6c65452a5e50224f1e3b83de73de29812 /networking/traceroute.c
parentb3b6c8bdf23d30c57d92458f1aac93ce84bf81a7 (diff)
downloadbusybox-dd169e84683aa7be3604d491f1c34ab657973365.zip
busybox-dd169e84683aa7be3604d491f1c34ab657973365.tar.gz
eliminate aliasing warnings in traceroute.c and udhcp/socket.c
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/traceroute.c')
-rw-r--r--networking/traceroute.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c
index c18fba8..82bb011 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -751,7 +751,8 @@ print(int read_len, const struct sockaddr *from, const struct sockaddr *to)
} else
#endif
{
- read_len -= ((struct ip*)recv_pkt)->ip_hl << 2;
+ struct ip *ip4packet = (struct ip*)recv_pkt;
+ read_len -= ip4packet->ip_hl << 2;
}
printf(" %d bytes to %s", read_len, ina);
free(ina);