diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-10-01 03:07:22 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-10-01 03:07:22 +0200 |
commit | 4a0eb0370c4df8ee01973b50bb460560532b79f1 (patch) | |
tree | ce2324f97b05ae50355961d47dea6cd003a4fc05 /networking/traceroute.c | |
parent | aaa0709e7b39d0dc22ac92443a86c84eaff58679 (diff) | |
download | busybox-w32-4a0eb0370c4df8ee01973b50bb460560532b79f1.tar.gz busybox-w32-4a0eb0370c4df8ee01973b50bb460560532b79f1.tar.bz2 busybox-w32-4a0eb0370c4df8ee01973b50bb460560532b79f1.zip |
gcc-9.x warning fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/traceroute.c')
-rw-r--r-- | networking/traceroute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c index 5068f654b..1c4dc3e4a 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c | |||
@@ -468,7 +468,7 @@ send_probe(int seq, int ttl) | |||
468 | /* Always calculate checksum for icmp packets */ | 468 | /* Always calculate checksum for icmp packets */ |
469 | outicmp->icmp_cksum = 0; | 469 | outicmp->icmp_cksum = 0; |
470 | outicmp->icmp_cksum = inet_cksum( | 470 | outicmp->icmp_cksum = inet_cksum( |
471 | (uint16_t *)outicmp, | 471 | outicmp, |
472 | ((char*)outip + packlen) - (char*)outicmp | 472 | ((char*)outip + packlen) - (char*)outicmp |
473 | ); | 473 | ); |
474 | if (outicmp->icmp_cksum == 0) | 474 | if (outicmp->icmp_cksum == 0) |