aboutsummaryrefslogtreecommitdiffstats
path: root/net/x25/sysctl_net_x25.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-01-09 00:30:05 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 15:01:07 -0800
commitb5ccd792fa413f9336273cb8fa3b9dd3a7ec1735 (patch)
tree64b23972fdf667baa74a0895bf403b22eb7de86c /net/x25/sysctl_net_x25.c
parent[IPV4]: Remove unsupported DNAT (RTCF_NAT and RTCF_NAT) in IPV4 (diff)
downloadlinux-dev-b5ccd792fa413f9336273cb8fa3b9dd3a7ec1735.tar.xz
linux-dev-b5ccd792fa413f9336273cb8fa3b9dd3a7ec1735.zip
[NET]: Simple ctl_table to ctl_path conversions.
This patch includes many places, that only required replacing the ctl_table-s with appropriate ctl_paths and call register_sysctl_paths(). Nothing special was done with them. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25/sysctl_net_x25.c')
-rw-r--r--net/x25/sysctl_net_x25.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/net/x25/sysctl_net_x25.c b/net/x25/sysctl_net_x25.c
index a59b77f18234..6ebda25c24e9 100644
--- a/net/x25/sysctl_net_x25.c
+++ b/net/x25/sysctl_net_x25.c
@@ -84,29 +84,15 @@ static struct ctl_table x25_table[] = {
{ 0, },
};
-static struct ctl_table x25_dir_table[] = {
- {
- .ctl_name = NET_X25,
- .procname = "x25",
- .mode = 0555,
- .child = x25_table,
- },
- { 0, },
-};
-
-static struct ctl_table x25_root_table[] = {
- {
- .ctl_name = CTL_NET,
- .procname = "net",
- .mode = 0555,
- .child = x25_dir_table,
- },
- { 0, },
+static struct ctl_path x25_path[] = {
+ { .procname = "net", .ctl_name = CTL_NET, },
+ { .procname = "x25", .ctl_name = NET_X25, },
+ { }
};
void __init x25_register_sysctl(void)
{
- x25_table_header = register_sysctl_table(x25_root_table);
+ x25_table_header = register_sysctl_paths(x25_path, x25_table);
}
void x25_unregister_sysctl(void)