diff options
author | Joe Perches <joe@perches.com> | 2013-06-12 02:04:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-13 05:36:09 -0400 |
commit | fe2c6338fd2c6f383c4d4164262f35c8f3708e1f (patch) | |
tree | 491431ce95f0bda453b054748e3552fa6450c21c /net/bridge | |
parent | 194f4a6df2a92c3d0bc65a85facfbc2433b25d06 (diff) |
net: Convert uses of typedef ctl_table to struct ctl_table
Reduce the uses of this unnecessary typedef.
Done via perl script:
$ git grep --name-only -w ctl_table net | \
xargs perl -p -i -e '\
sub trim { my ($local) = @_; $local =~ s/(^\s+|\s+$)//g; return $local; } \
s/\b(?<!struct\s)ctl_table\b(\s*\*\s*|\s+\w+)/"struct ctl_table " . trim($1)/ge'
Reflow the modified lines that now exceed 80 columns.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_netfilter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c index 1ed75bfd8d1d..f87736270eaa 100644 --- a/net/bridge/br_netfilter.c +++ b/net/bridge/br_netfilter.c | |||
@@ -992,7 +992,7 @@ static struct nf_hook_ops br_nf_ops[] __read_mostly = { | |||
992 | 992 | ||
993 | #ifdef CONFIG_SYSCTL | 993 | #ifdef CONFIG_SYSCTL |
994 | static | 994 | static |
995 | int brnf_sysctl_call_tables(ctl_table * ctl, int write, | 995 | int brnf_sysctl_call_tables(struct ctl_table *ctl, int write, |
996 | void __user * buffer, size_t * lenp, loff_t * ppos) | 996 | void __user * buffer, size_t * lenp, loff_t * ppos) |
997 | { | 997 | { |
998 | int ret; | 998 | int ret; |
@@ -1004,7 +1004,7 @@ int brnf_sysctl_call_tables(ctl_table * ctl, int write, | |||
1004 | return ret; | 1004 | return ret; |
1005 | } | 1005 | } |
1006 | 1006 | ||
1007 | static ctl_table brnf_table[] = { | 1007 | static struct ctl_table brnf_table[] = { |
1008 | { | 1008 | { |
1009 | .procname = "bridge-nf-call-arptables", | 1009 | .procname = "bridge-nf-call-arptables", |
1010 | .data = &brnf_call_arptables, | 1010 | .data = &brnf_call_arptables, |