aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-06-12 02:04:25 -0400
committerDavid S. Miller <davem@davemloft.net>2013-06-13 05:36:09 -0400
commitfe2c6338fd2c6f383c4d4164262f35c8f3708e1f (patch)
tree491431ce95f0bda453b054748e3552fa6450c21c /net/ipv6/addrconf.c
parent194f4a6df2a92c3d0bc65a85facfbc2433b25d06 (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/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 21010fddb203..80449121afa2 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -4620,13 +4620,13 @@ static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp)
4620#ifdef CONFIG_SYSCTL 4620#ifdef CONFIG_SYSCTL
4621 4621
4622static 4622static
4623int addrconf_sysctl_forward(ctl_table *ctl, int write, 4623int addrconf_sysctl_forward(struct ctl_table *ctl, int write,
4624 void __user *buffer, size_t *lenp, loff_t *ppos) 4624 void __user *buffer, size_t *lenp, loff_t *ppos)
4625{ 4625{
4626 int *valp = ctl->data; 4626 int *valp = ctl->data;
4627 int val = *valp; 4627 int val = *valp;
4628 loff_t pos = *ppos; 4628 loff_t pos = *ppos;
4629 ctl_table lctl; 4629 struct ctl_table lctl;
4630 int ret; 4630 int ret;
4631 4631
4632 /* 4632 /*
@@ -4705,13 +4705,13 @@ static int addrconf_disable_ipv6(struct ctl_table *table, int *p, int newf)
4705} 4705}
4706 4706
4707static 4707static
4708int addrconf_sysctl_disable(ctl_table *ctl, int write, 4708int addrconf_sysctl_disable(struct ctl_table *ctl, int write,
4709 void __user *buffer, size_t *lenp, loff_t *ppos) 4709 void __user *buffer, size_t *lenp, loff_t *ppos)
4710{ 4710{
4711 int *valp = ctl->data; 4711 int *valp = ctl->data;
4712 int val = *valp; 4712 int val = *valp;
4713 loff_t pos = *ppos; 4713 loff_t pos = *ppos;
4714 ctl_table lctl; 4714 struct ctl_table lctl;
4715 int ret; 4715 int ret;
4716 4716
4717 /* 4717 /*
@@ -4733,7 +4733,7 @@ int addrconf_sysctl_disable(ctl_table *ctl, int write,
4733static struct addrconf_sysctl_table 4733static struct addrconf_sysctl_table
4734{ 4734{
4735 struct ctl_table_header *sysctl_header; 4735 struct ctl_table_header *sysctl_header;
4736 ctl_table addrconf_vars[DEVCONF_MAX+1]; 4736 struct ctl_table addrconf_vars[DEVCONF_MAX+1];
4737} addrconf_sysctl __read_mostly = { 4737} addrconf_sysctl __read_mostly = {
4738 .sysctl_header = NULL, 4738 .sysctl_header = NULL,
4739 .addrconf_vars = { 4739 .addrconf_vars = {