summaryrefslogtreecommitdiff
path: root/print-ip6opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-ip6opts.c')
-rw-r--r--print-ip6opts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-ip6opts.c b/print-ip6opts.c
index 355c37a5..b1af8f86 100644
--- a/print-ip6opts.c
+++ b/print-ip6opts.c
@@ -172,7 +172,7 @@ trunc:
int
hbhopt_print(netdissect_options *ndo, register const u_char *bp)
{
- const struct ip6_hbh *dp = (struct ip6_hbh *)bp;
+ const struct ip6_hbh *dp = (const struct ip6_hbh *)bp;
int hbhlen = 0;
ND_TCHECK(dp->ip6h_len);
@@ -192,7 +192,7 @@ hbhopt_print(netdissect_options *ndo, register const u_char *bp)
int
dstopt_print(netdissect_options *ndo, register const u_char *bp)
{
- const struct ip6_dest *dp = (struct ip6_dest *)bp;
+ const struct ip6_dest *dp = (const struct ip6_dest *)bp;
int dstoptlen = 0;
ND_TCHECK(dp->ip6d_len);