X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/6e12d87355718f309ce9f33183ff8235b9c5eb0d..refs/pull/494/head:/print-carp.c diff --git a/print-carp.c b/print-carp.c index 3602cdac..eb893e2a 100644 --- a/print-carp.c +++ b/print-carp.c @@ -38,13 +38,9 @@ #include "config.h" #endif -#include +#include -#include -#include - -#include "interface.h" /* for checksum structure and functions */ -#include "netdissect.h" +#include "netdissect.h" /* for checksum structure and functions */ #include "extract.h" void @@ -71,7 +67,7 @@ carp_print(netdissect_options *ndo, register const u_char *bp, register u_int le bp[1], bp[5], bp[2], bp[3])); if (ndo->ndo_vflag) { struct cksum_vec vec[1]; - vec[0].ptr = (const u_int8_t *)bp; + vec[0].ptr = (const uint8_t *)bp; vec[0].len = len; if (ND_TTEST2(bp[0], len) && in_cksum(vec, 1)) ND_PRINT((ndo, " (bad carp cksum %x!)",