netfilter: xtables: mark initial tables constant
[deliverable/linux.git] / net / ipv4 / netfilter / iptable_mangle.c
index 28647f10aa7e8241bae2546288af8a2bed355ead..036047f9b0f2924bb0aeaaee03a921d4bff57f06 100644 (file)
@@ -28,7 +28,7 @@ MODULE_DESCRIPTION("iptables mangle table");
                            (1 << NF_INET_POST_ROUTING))
 
 /* Ouch - five different hooks? Maybe this should be a config option..... -- BC */
-static struct
+static const struct
 {
        struct ipt_replace repl;
        struct ipt_standard entries[5];
@@ -64,7 +64,7 @@ static struct
        .term = IPT_ERROR_INIT,                 /* ERROR */
 };
 
-static struct xt_table packet_mangler = {
+static const struct xt_table packet_mangler = {
        .name           = "mangle",
        .valid_hooks    = MANGLE_VALID_HOOKS,
        .me             = THIS_MODULE,
This page took 0.02569 seconds and 5 git commands to generate.