diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-04-26 17:24:42 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-04-26 17:24:42 -0700 |
commit | 69cb46af9119e8b5554bcc4bf1bf36f39cb82131 (patch) | |
tree | f75d78587057b773da075ffcd071e831f1e7beeb /print-ppi.c | |
parent | 4ac279241d8b41959cdef7b2778035cb014bb10b (diff) | |
download | tcpdump-69cb46af9119e8b5554bcc4bf1bf36f39cb82131.tar.gz |
Fix a bunch of de-constifications.
Diffstat (limited to 'print-ppi.c')
-rw-r--r-- | print-ppi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print-ppi.c b/print-ppi.c index dde1cdb0..b9f76579 100644 --- a/print-ppi.c +++ b/print-ppi.c @@ -50,7 +50,7 @@ ppi_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) { if_printer printer; - ppi_header_t *hdr; + const ppi_header_t *hdr; u_int caplen = h->caplen; u_int length = h->len; uint16_t len; @@ -62,7 +62,7 @@ ppi_print(netdissect_options *ndo, return (caplen); } - hdr = (ppi_header_t *)p; + hdr = (const ppi_header_t *)p; len = EXTRACT_LE_16BITS(&hdr->ppi_len); if (caplen < len) { /* @@ -89,7 +89,7 @@ ppi_print(netdissect_options *ndo, hdrlen = printer(ndo, h, p); } else { if (!ndo->ndo_eflag) - ppi_header_print(ndo, (u_char *)hdr, length + len); + ppi_header_print(ndo, (const u_char *)hdr, length + len); if (!ndo->ndo_suppress_default_print) ND_DEFAULTPRINT(p, caplen); |