commit | dd169e84683aa7be3604d491f1c34ab657973365 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Thu Jan 20 12:13:23 2011 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Thu Jan 20 12:13:23 2011 +0100 |
tree | 58e29fb6c65452a5e50224f1e3b83de73de29812 | |
parent | b3b6c8bdf23d30c57d92458f1aac93ce84bf81a7 [diff] [blame] |
eliminate aliasing warnings in traceroute.c and udhcp/socket.c Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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 @@ } 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);