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/ipv4/devinet.c | |
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/ipv4/devinet.c')
-rw-r--r-- | net/ipv4/devinet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index 3469506c106d..8d48c392adcc 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c | |||
@@ -1942,7 +1942,7 @@ static void inet_forward_change(struct net *net) | |||
1942 | } | 1942 | } |
1943 | } | 1943 | } |
1944 | 1944 | ||
1945 | static int devinet_conf_proc(ctl_table *ctl, int write, | 1945 | static int devinet_conf_proc(struct ctl_table *ctl, int write, |
1946 | void __user *buffer, | 1946 | void __user *buffer, |
1947 | size_t *lenp, loff_t *ppos) | 1947 | size_t *lenp, loff_t *ppos) |
1948 | { | 1948 | { |
@@ -1985,7 +1985,7 @@ static int devinet_conf_proc(ctl_table *ctl, int write, | |||
1985 | return ret; | 1985 | return ret; |
1986 | } | 1986 | } |
1987 | 1987 | ||
1988 | static int devinet_sysctl_forward(ctl_table *ctl, int write, | 1988 | static int devinet_sysctl_forward(struct ctl_table *ctl, int write, |
1989 | void __user *buffer, | 1989 | void __user *buffer, |
1990 | size_t *lenp, loff_t *ppos) | 1990 | size_t *lenp, loff_t *ppos) |
1991 | { | 1991 | { |
@@ -2028,7 +2028,7 @@ static int devinet_sysctl_forward(ctl_table *ctl, int write, | |||
2028 | return ret; | 2028 | return ret; |
2029 | } | 2029 | } |
2030 | 2030 | ||
2031 | static int ipv4_doint_and_flush(ctl_table *ctl, int write, | 2031 | static int ipv4_doint_and_flush(struct ctl_table *ctl, int write, |
2032 | void __user *buffer, | 2032 | void __user *buffer, |
2033 | size_t *lenp, loff_t *ppos) | 2033 | size_t *lenp, loff_t *ppos) |
2034 | { | 2034 | { |