mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
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>
This commit is contained in:
parent
194f4a6df2
commit
fe2c6338fd
32 changed files with 86 additions and 85 deletions
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include <net/af_unix.h>
|
||||
|
||||
static ctl_table unix_table[] = {
|
||||
static struct ctl_table unix_table[] = {
|
||||
{
|
||||
.procname = "max_dgram_qlen",
|
||||
.data = &init_net.unx.sysctl_max_dgram_qlen,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue