svn commit: r213792 - head/sys/contrib/pf/netinet
Rui Paulo
rpaulo at FreeBSD.org
Wed Oct 13 17:16:08 UTC 2010
Author: rpaulo
Date: Wed Oct 13 17:16:08 2010
New Revision: 213792
URL: http://svn.freebsd.org/changeset/base/213792
Log:
Ignore the return value of ADDCARRY().
Modified:
head/sys/contrib/pf/netinet/in4_cksum.c
Modified: head/sys/contrib/pf/netinet/in4_cksum.c
==============================================================================
--- head/sys/contrib/pf/netinet/in4_cksum.c Wed Oct 13 17:13:43 2010 (r213791)
+++ head/sys/contrib/pf/netinet/in4_cksum.c Wed Oct 13 17:16:08 2010 (r213792)
@@ -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);
More information about the svn-src-head
mailing list