aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/inet_cksum.c4
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
9uint16_t FAST_FUNC inet_cksum(uint16_t *addr, int nleft) 9uint16_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