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-ether.c | |
parent | 4ac279241d8b41959cdef7b2778035cb014bb10b (diff) | |
download | tcpdump-69cb46af9119e8b5554bcc4bf1bf36f39cb82131.tar.gz |
Fix a bunch of de-constifications.
Diffstat (limited to 'print-ether.c')
-rw-r--r-- | print-ether.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) |