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/sctp | |
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/sctp')
-rw-r--r-- | net/sctp/sysctl.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c index da4f15734fb1..5eb6ea829b54 100644 --- a/net/sctp/sysctl.c +++ b/net/sctp/sysctl.c | |||
@@ -275,24 +275,10 @@ static ctl_table sctp_table[] = { | |||
275 | { .ctl_name = 0 } | 275 | { .ctl_name = 0 } |
276 | }; | 276 | }; |
277 | 277 | ||
278 | static ctl_table sctp_net_table[] = { | 278 | static struct ctl_path sctp_path[] = { |
279 | { | 279 | { .procname = "net", .ctl_name = CTL_NET, }, |
280 | .ctl_name = NET_SCTP, | 280 | { .procname = "sctp", .ctl_name = NET_SCTP, }, |
281 | .procname = "sctp", | 281 | { } |
282 | .mode = 0555, | ||
283 | .child = sctp_table | ||
284 | }, | ||
285 | { .ctl_name = 0 } | ||
286 | }; | ||
287 | |||
288 | static ctl_table sctp_root_table[] = { | ||
289 | { | ||
290 | .ctl_name = CTL_NET, | ||
291 | .procname = "net", | ||
292 | .mode = 0555, | ||
293 | .child = sctp_net_table | ||
294 | }, | ||
295 | { .ctl_name = 0 } | ||
296 | }; | 282 | }; |
297 | 283 | ||
298 | static struct ctl_table_header * sctp_sysctl_header; | 284 | static struct ctl_table_header * sctp_sysctl_header; |
@@ -300,7 +286,7 @@ static struct ctl_table_header * sctp_sysctl_header; | |||
300 | /* Sysctl registration. */ | 286 | /* Sysctl registration. */ |
301 | void sctp_sysctl_register(void) | 287 | void sctp_sysctl_register(void) |
302 | { | 288 | { |
303 | sctp_sysctl_header = register_sysctl_table(sctp_root_table); | 289 | sctp_sysctl_header = register_sysctl_paths(sctp_path, sctp_table); |
304 | } | 290 | } |
305 | 291 | ||
306 | /* Sysctl deregistration. */ | 292 | /* Sysctl deregistration. */ |