Skip to content

Commit

Permalink
[NETFILTER]: Use const in struct xt_match, xt_target, xt_table
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Engelhardt authored and David S. Miller committed Feb 1, 2008
1 parent ca7c48c commit ecb6f85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/linux/netfilter/x_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion net/ipv4/netfilter/ip_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion net/ipv6/netfilter/ip6_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit ecb6f85

Please sign in to comment.