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:
Luigi Rizzo 2012-07-31 08:04:49 +00:00
parent cfe1569450
commit 9df9e62789
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238941

View File

@ -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;