Fix the compilation under Linux x86_64.
[ipfw.git] / dummynet / in_cksum.c
index ca56508..8972cef 100644 (file)
@@ -88,7 +88,11 @@ in_cksum(struct mbuf *m, int len)
                /*
                 * Force to even boundary.
                 */
+#if defined(CONFIG_X86_64)
+               if ((1 & (long) w) && (mlen > 0)) {
+#else
                if ((1 & (int) w) && (mlen > 0)) {
+#endif
                        REDUCE;
                        sum <<= 8;
                        s_util.c[0] = *(u_char *)w;