nobody uses this file except the userspace ipfw code, but the cast
of a pointer to an integer needs a cast to prevent a warning for size mismatch. MFC after: 1 week
This commit is contained in:
parent
cfe1569450
commit
9df9e62789
@ -88,7 +88,7 @@ in_cksum(struct mbuf *m, int len)
|
||||
/*
|
||||
* Force to even boundary.
|
||||
*/
|
||||
if ((1 & (int) w) && (mlen > 0)) {
|
||||
if ((1 & (uintptr_t) w) && (mlen > 0)) {
|
||||
REDUCE;
|
||||
sum <<= 8;
|
||||
s_util.c[0] = *(u_char *)w;
|
||||
|
Loading…
x
Reference in New Issue
Block a user