]> Pileus Git - ~andy/linux/blobdiff - net/ipv4/netfilter/ipt_LOG.c
[NETFILTER]: annotate xtables targets with const and remove casts
[~andy/linux] / net / ipv4 / netfilter / ipt_LOG.c
index c40e233e271b5668af1175f2e45f1c9c40955401..0af14137137b6c836263ee386b234a60e02e4585 100644 (file)
@@ -76,7 +76,8 @@ static void dump_packet(const struct nf_loginfo *info,
 
        if ((logflags & IPT_LOG_IPOPT)
            && ih->ihl * 4 > sizeof(struct iphdr)) {
-               unsigned char _opt[4 * 15 - sizeof(struct iphdr)], *op;
+               const unsigned char *op;
+               unsigned char _opt[4 * 15 - sizeof(struct iphdr)];
                unsigned int i, optsize;
 
                optsize = ih->ihl * 4 - sizeof(struct iphdr);