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>
This commit is contained in:

committed by
David S. Miller

parent
194f4a6df2
commit
fe2c6338fd
@@ -992,7 +992,7 @@ static struct nf_hook_ops br_nf_ops[] __read_mostly = {
|
||||
|
||||
#ifdef CONFIG_SYSCTL
|
||||
static
|
||||
int brnf_sysctl_call_tables(ctl_table * ctl, int write,
|
||||
int brnf_sysctl_call_tables(struct ctl_table *ctl, int write,
|
||||
void __user * buffer, size_t * lenp, loff_t * ppos)
|
||||
{
|
||||
int ret;
|
||||
@@ -1004,7 +1004,7 @@ int brnf_sysctl_call_tables(ctl_table * ctl, int write,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static ctl_table brnf_table[] = {
|
||||
static struct ctl_table brnf_table[] = {
|
||||
{
|
||||
.procname = "bridge-nf-call-arptables",
|
||||
.data = &brnf_call_arptables,
|
||||
|
Reference in New Issue
Block a user