aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet
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/decnet
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/decnet')
-rw-r--r--net/decnet/dn_dev.c6
-rw-r--r--net/decnet/sysctl_net_decnet.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/net/decnet/dn_dev.c b/net/decnet/dn_dev.c
index 7d9197063ebb..dd0dfb25f4b1 100644
--- a/net/decnet/dn_dev.c
+++ b/net/decnet/dn_dev.c
@@ -158,11 +158,11 @@ static int max_t3[] = { 8191 }; /* Must fit in 16 bits when multiplied by BCT3MU
158static int min_priority[1]; 158static int min_priority[1];
159static int max_priority[] = { 127 }; /* From DECnet spec */ 159static int max_priority[] = { 127 }; /* From DECnet spec */
160 160
161static int dn_forwarding_proc(ctl_table *, int, 161static int dn_forwarding_proc(struct ctl_table *, int,
162 void __user *, size_t *, loff_t *); 162 void __user *, size_t *, loff_t *);
163static struct dn_dev_sysctl_table { 163static struct dn_dev_sysctl_table {
164 struct ctl_table_header *sysctl_header; 164 struct ctl_table_header *sysctl_header;
165 ctl_table dn_dev_vars[5]; 165 struct ctl_table dn_dev_vars[5];
166} dn_dev_sysctl = { 166} dn_dev_sysctl = {
167 NULL, 167 NULL,
168 { 168 {
@@ -242,7 +242,7 @@ static void dn_dev_sysctl_unregister(struct dn_dev_parms *parms)
242 } 242 }
243} 243}
244 244
245static int dn_forwarding_proc(ctl_table *table, int write, 245static int dn_forwarding_proc(struct ctl_table *table, int write,
246 void __user *buffer, 246 void __user *buffer,
247 size_t *lenp, loff_t *ppos) 247 size_t *lenp, loff_t *ppos)
248{ 248{
diff --git a/net/decnet/sysctl_net_decnet.c b/net/decnet/sysctl_net_decnet.c
index a55eeccaa72f..5325b541c526 100644
--- a/net/decnet/sysctl_net_decnet.c
+++ b/net/decnet/sysctl_net_decnet.c
@@ -132,7 +132,7 @@ static int parse_addr(__le16 *addr, char *str)
132 return 0; 132 return 0;
133} 133}
134 134
135static int dn_node_address_handler(ctl_table *table, int write, 135static int dn_node_address_handler(struct ctl_table *table, int write,
136 void __user *buffer, 136 void __user *buffer,
137 size_t *lenp, loff_t *ppos) 137 size_t *lenp, loff_t *ppos)
138{ 138{
@@ -183,7 +183,7 @@ static int dn_node_address_handler(ctl_table *table, int write,
183 return 0; 183 return 0;
184} 184}
185 185
186static int dn_def_dev_handler(ctl_table *table, int write, 186static int dn_def_dev_handler(struct ctl_table *table, int write,
187 void __user *buffer, 187 void __user *buffer,
188 size_t *lenp, loff_t *ppos) 188 size_t *lenp, loff_t *ppos)
189{ 189{
@@ -246,7 +246,7 @@ static int dn_def_dev_handler(ctl_table *table, int write,
246 return 0; 246 return 0;
247} 247}
248 248
249static ctl_table dn_table[] = { 249static struct ctl_table dn_table[] = {
250 { 250 {
251 .procname = "node_address", 251 .procname = "node_address",
252 .maxlen = 7, 252 .maxlen = 7,