X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/7b2c5a11a7bc236d72b440c4db5263edb23b4880..9ab2f1792276f15e9d7082433bfe9f4d988bd51a:/print-ipcomp.c diff --git a/print-ipcomp.c b/print-ipcomp.c index 2504bfd9..633de9be 100644 --- a/print-ipcomp.c +++ b/print-ipcomp.c @@ -48,13 +48,13 @@ ipcomp_print(netdissect_options *ndo, register const u_char *bp, int *nhdr _U_) int advance; #endif - ipcomp = (struct ipcomp *)bp; + ipcomp = (const struct ipcomp *)bp; cpi = EXTRACT_16BITS(&ipcomp->comp_cpi); /* 'ep' points to the end of available data. */ ep = ndo->ndo_snapend; - if ((u_char *)(ipcomp + 1) >= ep - sizeof(struct ipcomp)) { + if ((const u_char *)(ipcomp + 1) >= ep - sizeof(struct ipcomp)) { ND_PRINT((ndo, "[|IPCOMP]")); goto fail; }