diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-10-13 17:16:08 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-10-13 17:16:08 +0000 |
commit | c652fa1474dc30560bf39f7d5634665d1b98bf8f (patch) | |
tree | 21a530c5a7e0f25fadac165020e9800966eaf177 /sys/contrib/pf | |
parent | 1a7d335fab73a291babf4cbb4fa67c82ca9eddba (diff) | |
download | FreeBSD-src-c652fa1474dc30560bf39f7d5634665d1b98bf8f.zip FreeBSD-src-c652fa1474dc30560bf39f7d5634665d1b98bf8f.tar.gz |
Ignore the return value of ADDCARRY().
Diffstat (limited to 'sys/contrib/pf')
-rw-r--r-- | sys/contrib/pf/netinet/in4_cksum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/pf/netinet/in4_cksum.c b/sys/contrib/pf/netinet/in4_cksum.c index 24a04d0..bf25baf 100644 --- a/sys/contrib/pf/netinet/in4_cksum.c +++ b/sys/contrib/pf/netinet/in4_cksum.c @@ -75,7 +75,7 @@ #include <machine/in_cksum.h> #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) -#define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);} +#define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; (void)ADDCARRY(sum);} int in4_cksum(struct mbuf *, u_int8_t, int, int); |