diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-01-09 03:30:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:07 -0500 |
commit | b5ccd792fa413f9336273cb8fa3b9dd3a7ec1735 (patch) | |
tree | 64b23972fdf667baa74a0895bf403b22eb7de86c /net/appletalk/sysctl_net_atalk.c | |
parent | cb7928a528264a69b29b6001b490b64607ed0557 (diff) |
[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/appletalk/sysctl_net_atalk.c')
-rw-r--r-- | net/appletalk/sysctl_net_atalk.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/net/appletalk/sysctl_net_atalk.c b/net/appletalk/sysctl_net_atalk.c index 7df1778e221a..621805dfa2f4 100644 --- a/net/appletalk/sysctl_net_atalk.c +++ b/net/appletalk/sysctl_net_atalk.c | |||
@@ -49,31 +49,17 @@ static struct ctl_table atalk_table[] = { | |||
49 | { 0 }, | 49 | { 0 }, |
50 | }; | 50 | }; |
51 | 51 | ||
52 | static struct ctl_table atalk_dir_table[] = { | 52 | static struct ctl_path atalk_path[] = { |
53 | { | 53 | { .procname = "net", .ctl_name = CTL_NET, }, |
54 | .ctl_name = NET_ATALK, | 54 | { .procname = "appletalk", .ctl_name = NET_ATALK, }, |
55 | .procname = "appletalk", | 55 | { } |
56 | .mode = 0555, | ||
57 | .child = atalk_table, | ||
58 | }, | ||
59 | { 0 }, | ||
60 | }; | ||
61 | |||
62 | static struct ctl_table atalk_root_table[] = { | ||
63 | { | ||
64 | .ctl_name = CTL_NET, | ||
65 | .procname = "net", | ||
66 | .mode = 0555, | ||
67 | .child = atalk_dir_table, | ||
68 | }, | ||
69 | { 0 }, | ||
70 | }; | 56 | }; |
71 | 57 | ||
72 | static struct ctl_table_header *atalk_table_header; | 58 | static struct ctl_table_header *atalk_table_header; |
73 | 59 | ||
74 | void atalk_register_sysctl(void) | 60 | void atalk_register_sysctl(void) |
75 | { | 61 | { |
76 | atalk_table_header = register_sysctl_table(atalk_root_table); | 62 | atalk_table_header = register_sysctl_paths(atalk_path, atalk_table); |
77 | } | 63 | } |
78 | 64 | ||
79 | void atalk_unregister_sysctl(void) | 65 | void atalk_unregister_sysctl(void) |