aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2007-12-01 07:40:40 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:55:21 -0500
commit97577e38284f48ca773392e2d401af2f6c95dc08 (patch)
treef744e46259cf06b13858f2965526d512308cb7da /net/unix/af_unix.c
parentdd88590995de7c7ce108718a9ad52b3832e77814 (diff)
[UNIX]: Extend unix_sysctl_(un)register prototypes
Add the struct net * argument to both of them to use in the future. Also make the register one return an error code. It is useless right now, but will make the future patches much simpler. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Acked-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r--net/unix/af_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 393197afb19..a0aa6d3c2c0 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -2175,7 +2175,7 @@ static int __init af_unix_init(void)
2175 2175
2176 sock_register(&unix_family_ops); 2176 sock_register(&unix_family_ops);
2177 register_pernet_subsys(&unix_net_ops); 2177 register_pernet_subsys(&unix_net_ops);
2178 unix_sysctl_register(); 2178 unix_sysctl_register(&init_net);
2179out: 2179out:
2180 return rc; 2180 return rc;
2181} 2181}
@@ -2183,7 +2183,7 @@ out:
2183static void __exit af_unix_exit(void) 2183static void __exit af_unix_exit(void)
2184{ 2184{
2185 sock_unregister(PF_UNIX); 2185 sock_unregister(PF_UNIX);
2186 unix_sysctl_unregister(); 2186 unix_sysctl_unregister(&init_net);
2187 proto_unregister(&unix_proto); 2187 proto_unregister(&unix_proto);
2188 unregister_pernet_subsys(&unix_net_ops); 2188 unregister_pernet_subsys(&unix_net_ops);
2189} 2189}