]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/netfilter/nf_nat_rule.c
netfilter: xtables: mark initial tables constant
[net-next-2.6.git] / net / ipv4 / netfilter / nf_nat_rule.c
index 6448a9b7d6f0fe11871e32e2ef60133cc8f6e12e..9e81e0dfb4ec45534faf3808b964e404e2850952 100644 (file)
@@ -28,7 +28,7 @@
                         (1 << NF_INET_POST_ROUTING) | \
                         (1 << NF_INET_LOCAL_OUT))
 
-static struct
+static const struct
 {
        struct ipt_replace repl;
        struct ipt_standard entries[3];
@@ -58,7 +58,7 @@ static struct
        .term = IPT_ERROR_INIT,                 /* ERROR */
 };
 
-static struct xt_table nat_table = {
+static const struct xt_table nat_table = {
        .name           = "nat",
        .valid_hooks    = NAT_VALID_HOOKS,
        .me             = THIS_MODULE,