From 69cb46af9119e8b5554bcc4bf1bf36f39cb82131 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 26 Apr 2015 17:24:42 -0700 Subject: Fix a bunch of de-constifications. --- print-ether.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'print-ether.c') diff --git a/print-ether.c b/print-ether.c index 83cc4e5f..ddf6a530 100644 --- a/print-ether.c +++ b/print-ether.c @@ -128,7 +128,7 @@ ether_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, void (*print_encap_header)(netdissect_options *ndo, const u_char *), const u_char *encap_header_arg) { - struct ether_header *ep; + const struct ether_header *ep; u_int orig_length; u_short ether_type; u_int hdrlen; @@ -152,7 +152,7 @@ ether_print(netdissect_options *ndo, length -= ETHER_HDRLEN; caplen -= ETHER_HDRLEN; - ep = (struct ether_header *)p; + ep = (const struct ether_header *)p; p += ETHER_HDRLEN; hdrlen = ETHER_HDRLEN; @@ -227,7 +227,7 @@ recurse: if (!ndo->ndo_eflag) { if (print_encap_header != NULL) (*print_encap_header)(ndo, encap_header_arg); - ether_hdr_print(ndo, (u_char *)ep, orig_length); + ether_hdr_print(ndo, (const u_char *)ep, orig_length); } if (!ndo->ndo_suppress_default_print) -- cgit v1.2.1