]> err.no Git - linux-2.6/commitdiff
[NETFILTER]: Use const in struct xt_match, xt_target, xt_table
authorJan Engelhardt <jengelh@computergmbh.de>
Thu, 31 Jan 2008 11:54:47 +0000 (03:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:27:28 +0000 (19:27 -0800)
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter/x_tables.h
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c

index b99ede51318a25c9d895259fc0eabbeebe0a9635..90dc6ea2a683c3e3672ea0c26cf717c1e092bfa0 100644 (file)
@@ -214,7 +214,7 @@ struct xt_match
        /* Free to use by each match */
        unsigned long data;
 
-       char *table;
+       const char *table;
        unsigned int matchsize;
        unsigned int compatsize;
        unsigned int hooks;
@@ -261,7 +261,7 @@ struct xt_target
        /* Set this to THIS_MODULE if you are a module, otherwise NULL */
        struct module *me;
 
-       char *table;
+       const char *table;
        unsigned int targetsize;
        unsigned int compatsize;
        unsigned int hooks;
@@ -277,7 +277,7 @@ struct xt_table
        struct list_head list;
 
        /* A unique name... */
-       char name[XT_TABLE_MAXNAMELEN];
+       const char name[XT_TABLE_MAXNAMELEN];
 
        /* What hooks you will enter on */
        unsigned int valid_hooks;
index 982b7f9862918cd3c25d1ad9e11c95985fc2e459..628a6b58ddb8a9fbe6ed10167d4c6f8046a38dab 100644 (file)
@@ -291,7 +291,7 @@ static void trace_packet(struct sk_buff *skb,
                         unsigned int hook,
                         const struct net_device *in,
                         const struct net_device *out,
-                        char *tablename,
+                        const char *tablename,
                         struct xt_table_info *private,
                         struct ipt_entry *e)
 {
index dd7860fea61f98752bed17073cc92dd2d52808e3..92b4898344ff96f5c83cb555bffc6a95ca15aeac 100644 (file)
@@ -320,7 +320,7 @@ static void trace_packet(struct sk_buff *skb,
                         unsigned int hook,
                         const struct net_device *in,
                         const struct net_device *out,
-                        char *tablename,
+                        const char *tablename,
                         struct xt_table_info *private,
                         struct ip6t_entry *e)
 {