aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.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/ipv4/route.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/ipv4/route.c')
-rw-r--r--net/ipv4/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 198ea596f2d9..f3fa42eac461 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -2448,7 +2448,7 @@ static int ip_rt_gc_interval __read_mostly = 60 * HZ;
2448static int ip_rt_gc_min_interval __read_mostly = HZ / 2; 2448static int ip_rt_gc_min_interval __read_mostly = HZ / 2;
2449static int ip_rt_gc_elasticity __read_mostly = 8; 2449static int ip_rt_gc_elasticity __read_mostly = 8;
2450 2450
2451static int ipv4_sysctl_rtcache_flush(ctl_table *__ctl, int write, 2451static int ipv4_sysctl_rtcache_flush(struct ctl_table *__ctl, int write,
2452 void __user *buffer, 2452 void __user *buffer,
2453 size_t *lenp, loff_t *ppos) 2453 size_t *lenp, loff_t *ppos)
2454{ 2454{
@@ -2463,7 +2463,7 @@ static int ipv4_sysctl_rtcache_flush(ctl_table *__ctl, int write,
2463 return -EINVAL; 2463 return -EINVAL;
2464} 2464}
2465 2465
2466static ctl_table ipv4_route_table[] = { 2466static struct ctl_table ipv4_route_table[] = {
2467 { 2467 {
2468 .procname = "gc_thresh", 2468 .procname = "gc_thresh",
2469 .data = &ipv4_dst_ops.gc_thresh, 2469 .data = &ipv4_dst_ops.gc_thresh,