aboutsummaryrefslogtreecommitdiff
path: root/networking/traceroute.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-22 18:37:07 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-22 18:37:07 +0000
commit4cccc03768ecde58e8acd5e4f40e51227e3c14cc (patch)
tree1d9ac9a483f4ca245fff9925c30a7f842d9b51ca /networking/traceroute.c
parenta6df5907d273f0fe067e82c60391d6bf9a02dd4b (diff)
downloadbusybox-4cccc03768ecde58e8acd5e4f40e51227e3c14cc.tar.gz
remove useless casts (type*) xzalloc(...)
Diffstat (limited to 'networking/traceroute.c')
-rw-r--r--networking/traceroute.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c
index 1462543f1..adb9ef0b4 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -1118,7 +1118,7 @@ traceroute_main(int argc, char *argv[])
xsetgid(getgid());
xsetuid(getuid());
- outip = (struct ip *)xzalloc(packlen);
+ outip = xzalloc(packlen);
outip->ip_v = IPVERSION;
if (tos_str)
@@ -1133,7 +1133,6 @@ traceroute_main(int argc, char *argv[])
#if ENABLE_FEATURE_TRACEROUTE_USE_ICMP
if (useicmp) {
outip->ip_p = IPPROTO_ICMP;
-
outicmp = (struct icmp *)outp;
outicmp->icmp_type = ICMP_ECHO;
outicmp->icmp_id = htons(ident);
@@ -1142,7 +1141,6 @@ traceroute_main(int argc, char *argv[])
#endif
{
outip->ip_p = IPPROTO_UDP;
-
outudp = (struct udphdr *)outp;
outudp->source = htons(ident);
outudp->len = htons((uint16_t)(packlen - (sizeof(*outip) + optlen)));