Replaced a += (combined addition and assignment) with an explicit assignment and addition to avoid compiler warnings.

This commit is contained in:
adamdunkels 2002-10-24 13:20:42 +00:00
parent 4933bfaaa0
commit aa69784495

View File

@ -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 */