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 /libbb | |
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 'libbb')
-rw-r--r-- | libbb/inet_cksum.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libbb/inet_cksum.c b/libbb/inet_cksum.c index 3d5dc3adf..fee8648f3 100644 --- a/libbb/inet_cksum.c +++ b/libbb/inet_cksum.c | |||
@@ -6,8 +6,10 @@ | |||
6 | 6 | ||
7 | #include "libbb.h" | 7 | #include "libbb.h" |
8 | 8 | ||
9 | uint16_t FAST_FUNC inet_cksum(uint16_t *addr, int nleft) | 9 | uint16_t FAST_FUNC inet_cksum(const void *ptr, int nleft) |
10 | { | 10 | { |
11 | const uint16_t *addr = ptr; | ||
12 | |||
11 | /* | 13 | /* |
12 | * Our algorithm is simple, using a 32 bit accumulator, | 14 | * Our algorithm is simple, using a 32 bit accumulator, |
13 | * we add sequential 16 bit words to it, and at the end, fold | 15 | * we add sequential 16 bit words to it, and at the end, fold |