aboutsummaryrefslogtreecommitdiffstats
path: root/net/phonet/sysctl.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/phonet/sysctl.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/phonet/sysctl.c')
-rw-r--r--net/phonet/sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/phonet/sysctl.c b/net/phonet/sysctl.c
index d6bbbbd0af18..c02a8c4bc11f 100644
--- a/net/phonet/sysctl.c
+++ b/net/phonet/sysctl.c
@@ -61,13 +61,13 @@ void phonet_get_local_port_range(int *min, int *max)
61 } while (read_seqretry(&local_port_range_lock, seq)); 61 } while (read_seqretry(&local_port_range_lock, seq));
62} 62}
63 63
64static int proc_local_port_range(ctl_table *table, int write, 64static int proc_local_port_range(struct ctl_table *table, int write,
65 void __user *buffer, 65 void __user *buffer,
66 size_t *lenp, loff_t *ppos) 66 size_t *lenp, loff_t *ppos)
67{ 67{
68 int ret; 68 int ret;
69 int range[2] = {local_port_range[0], local_port_range[1]}; 69 int range[2] = {local_port_range[0], local_port_range[1]};
70 ctl_table tmp = { 70 struct ctl_table tmp = {
71 .data = &range, 71 .data = &range,
72 .maxlen = sizeof(range), 72 .maxlen = sizeof(range),
73 .mode = table->mode, 73 .mode = table->mode,