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/ipx | |
| 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/ipx')
| -rw-r--r-- | net/ipx/sysctl_net_ipx.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/net/ipx/sysctl_net_ipx.c b/net/ipx/sysctl_net_ipx.c index 0cf526450536..92fef864e852 100644 --- a/net/ipx/sysctl_net_ipx.c +++ b/net/ipx/sysctl_net_ipx.c | |||
| @@ -28,31 +28,17 @@ static struct ctl_table ipx_table[] = { | |||
| 28 | { 0 }, | 28 | { 0 }, |
| 29 | }; | 29 | }; |
| 30 | 30 | ||
| 31 | static struct ctl_table ipx_dir_table[] = { | 31 | static struct ctl_path ipx_path[] = { |
| 32 | { | 32 | { .procname = "net", .ctl_name = CTL_NET, }, |
| 33 | .ctl_name = NET_IPX, | 33 | { .procname = "ipx", .ctl_name = NET_IPX, }, |
| 34 | .procname = "ipx", | 34 | { } |
| 35 | .mode = 0555, | ||
| 36 | .child = ipx_table, | ||
| 37 | }, | ||
| 38 | { 0 }, | ||
| 39 | }; | ||
| 40 | |||
| 41 | static struct ctl_table ipx_root_table[] = { | ||
| 42 | { | ||
| 43 | .ctl_name = CTL_NET, | ||
| 44 | .procname = "net", | ||
| 45 | .mode = 0555, | ||
| 46 | .child = ipx_dir_table, | ||
| 47 | }, | ||
| 48 | { 0 }, | ||
| 49 | }; | 35 | }; |
| 50 | 36 | ||
| 51 | static struct ctl_table_header *ipx_table_header; | 37 | static struct ctl_table_header *ipx_table_header; |
| 52 | 38 | ||
| 53 | void ipx_register_sysctl(void) | 39 | void ipx_register_sysctl(void) |
| 54 | { | 40 | { |
| 55 | ipx_table_header = register_sysctl_table(ipx_root_table); | 41 | ipx_table_header = register_sysctl_paths(ipx_path, ipx_table); |
| 56 | } | 42 | } |
| 57 | 43 | ||
| 58 | void ipx_unregister_sysctl(void) | 44 | void ipx_unregister_sysctl(void) |
