]> Pileus Git - ~andy/linux/blobdiff - net/ipv6/netfilter/ip6t_ipv6header.c
[NETFILTER]: annotate xtables targets with const and remove casts
[~andy/linux] / net / ipv6 / netfilter / ip6t_ipv6header.c
index 3a940171f8297ac47669e658d2f8c80e5f5945ed..317a8960a757a44cbea22399627c2e7258bc51ca 100644 (file)
@@ -49,7 +49,8 @@ ipv6header_mt6(const struct sk_buff *skb, const struct net_device *in,
        temp = 0;
 
        while (ip6t_ext_hdr(nexthdr)) {
-               struct ipv6_opt_hdr _hdr, *hp;
+               const struct ipv6_opt_hdr *hp;
+               struct ipv6_opt_hdr _hdr;
                int hdrlen;
 
                /* Is there enough space for the next ext header? */