summaryrefslogtreecommitdiff
path: root/print-ppi.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-04-26 17:24:42 -0700
committerGuy Harris <guy@alum.mit.edu>2015-04-26 17:24:42 -0700
commit69cb46af9119e8b5554bcc4bf1bf36f39cb82131 (patch)
treef75d78587057b773da075ffcd071e831f1e7beeb /print-ppi.c
parent4ac279241d8b41959cdef7b2778035cb014bb10b (diff)
downloadtcpdump-69cb46af9119e8b5554bcc4bf1bf36f39cb82131.tar.gz
Fix a bunch of de-constifications.
Diffstat (limited to 'print-ppi.c')
-rw-r--r--print-ppi.c6
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);