From aa6978449552f766ade03517ba804c0694386717 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Thu, 24 Oct 2002 13:20:42 +0000 Subject: [PATCH] Replaced a += (combined addition and assignment) with an explicit assignment and addition to avoid compiler warnings. --- src/core/inet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/inet.c b/src/core/inet.c index 9abbcbe1..d135e2c9 100644 --- a/src/core/inet.c +++ b/src/core/inet.c @@ -54,7 +54,7 @@ lwip_chksum(void *dataptr, int len) u32_t acc; for(acc = 0; len > 1; len -= 2) { - acc += *((u16_t *)dataptr)++; + acc = acc + *((u16_t *)dataptr)++; } /* add up any odd byte */