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/ping.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/ping.c')
-rw-r--r-- | networking/ping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ping.c b/networking/ping.c index 47b6ab1b2..5f7e5b9b5 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -217,7 +217,7 @@ static void ping4(len_and_sockaddr *lsa) | |||
217 | /*memset(pkt, 0, sizeof(G.packet)); already is */ | 217 | /*memset(pkt, 0, sizeof(G.packet)); already is */ |
218 | pkt->icmp_type = ICMP_ECHO; | 218 | pkt->icmp_type = ICMP_ECHO; |
219 | pkt->icmp_id = G.myid; | 219 | pkt->icmp_id = G.myid; |
220 | pkt->icmp_cksum = inet_cksum((uint16_t *) pkt, sizeof(G.packet)); | 220 | pkt->icmp_cksum = inet_cksum(pkt, sizeof(G.packet)); |
221 | 221 | ||
222 | xsendto(pingsock, G.packet, DEFDATALEN + ICMP_MINLEN, &lsa->u.sa, lsa->len); | 222 | xsendto(pingsock, G.packet, DEFDATALEN + ICMP_MINLEN, &lsa->u.sa, lsa->len); |
223 | 223 | ||
@@ -529,7 +529,7 @@ static void sendping4(int junk UNUSED_PARAM) | |||
529 | /* No hton: we'll read it back on the same machine */ | 529 | /* No hton: we'll read it back on the same machine */ |
530 | *(uint32_t*)&pkt->icmp_dun = G.cur_us = monotonic_us(); | 530 | *(uint32_t*)&pkt->icmp_dun = G.cur_us = monotonic_us(); |
531 | 531 | ||
532 | pkt->icmp_cksum = inet_cksum((uint16_t *) pkt, datalen + ICMP_MINLEN); | 532 | pkt->icmp_cksum = inet_cksum(pkt, datalen + ICMP_MINLEN); |
533 | 533 | ||
534 | sendping_tail(sendping4, ICMP_MINLEN); | 534 | sendping_tail(sendping4, ICMP_MINLEN); |
535 | } | 535 | } |