diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-01-09 03:31:49 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:09 -0500 |
commit | 3151a9ab04714d0323efbe3c6c12bc5b2b1f058d (patch) | |
tree | 624422f09186fe2dad9c2e788e3cb5d94d27ea85 /net/decnet/sysctl_net_decnet.c | |
parent | 90754f8ec011c91382ece2849a43b8f8aa8a0105 (diff) |
[DECNET]: Switch to using ctl_paths.
The decnet includes two places to patch. The first one is
the net/decnet table itself, and it is patched just like
other subsystems in the first patch in this series.
The second place is a bit more complex - it is the
net/decnet/conf/xxx entries,. similar to those in
ipv4/devinet.c and ipv6/addrconf.c. This code is made similar
to those in ipv[46].
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet/sysctl_net_decnet.c')
-rw-r--r-- | net/decnet/sysctl_net_decnet.c | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/net/decnet/sysctl_net_decnet.c b/net/decnet/sysctl_net_decnet.c index ae354a43fb97..228067c571ba 100644 --- a/net/decnet/sysctl_net_decnet.c +++ b/net/decnet/sysctl_net_decnet.c | |||
@@ -470,28 +470,15 @@ static ctl_table dn_table[] = { | |||
470 | {0} | 470 | {0} |
471 | }; | 471 | }; |
472 | 472 | ||
473 | static ctl_table dn_dir_table[] = { | 473 | static struct ctl_path dn_path[] = { |
474 | { | 474 | { .procname = "net", .ctl_name = CTL_NET, }, |
475 | .ctl_name = NET_DECNET, | 475 | { .procname = "decnet", .ctl_name = NET_DECNET, }, |
476 | .procname = "decnet", | 476 | { } |
477 | .mode = 0555, | ||
478 | .child = dn_table}, | ||
479 | {0} | ||
480 | }; | ||
481 | |||
482 | static ctl_table dn_root_table[] = { | ||
483 | { | ||
484 | .ctl_name = CTL_NET, | ||
485 | .procname = "net", | ||
486 | .mode = 0555, | ||
487 | .child = dn_dir_table | ||
488 | }, | ||
489 | {0} | ||
490 | }; | 477 | }; |
491 | 478 | ||
492 | void dn_register_sysctl(void) | 479 | void dn_register_sysctl(void) |
493 | { | 480 | { |
494 | dn_table_header = register_sysctl_table(dn_root_table); | 481 | dn_table_header = register_sysctl_paths(dn_path, dn_table); |
495 | } | 482 | } |
496 | 483 | ||
497 | void dn_unregister_sysctl(void) | 484 | void dn_unregister_sysctl(void) |