X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/513f782ae18791f0c925b9235da749b38159b607..a8c33a5850cd9d2f39e56c06b645c283225d78c4:/in_cksum.c diff --git a/in_cksum.c b/in_cksum.c index 27643057..eb7c634f 100644 --- a/in_cksum.c +++ b/in_cksum.c @@ -36,7 +36,7 @@ */ #ifdef HAVE_CONFIG_H -# include "config.h" +# include #endif #include "netdissect-stdinc.h" @@ -196,5 +196,5 @@ in_cksum_shouldbe(uint16_t sum, uint16_t computed_sum) shouldbe += ntohs(computed_sum); shouldbe = (shouldbe & 0xFFFF) + (shouldbe >> 16); shouldbe = (shouldbe & 0xFFFF) + (shouldbe >> 16); - return shouldbe; + return (uint16_t)shouldbe; }