aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/af_unix.h
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 /include/net/af_unix.h
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 'include/net/af_unix.h')
-rw-r--r--include/net/af_unix.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/af_unix.h b/include/net/af_unix.h
index a1c805d7f488..e0fba269d092 100644
--- a/include/net/af_unix.h
+++ b/include/net/af_unix.h
@@ -60,11 +60,11 @@ struct unix_sock {
60 60
61#ifdef CONFIG_SYSCTL 61#ifdef CONFIG_SYSCTL
62extern int sysctl_unix_max_dgram_qlen; 62extern int sysctl_unix_max_dgram_qlen;
63extern void unix_sysctl_register(void); 63extern int unix_sysctl_register(struct net *net);
64extern void unix_sysctl_unregister(void); 64extern void unix_sysctl_unregister(struct net *net);
65#else 65#else
66static inline void unix_sysctl_register(void) {} 66static inline int unix_sysctl_register(struct net *net) { return 0; }
67static inline void unix_sysctl_unregister(void) {} 67static inline void unix_sysctl_unregister(struct net *net) {}
68#endif 68#endif
69#endif 69#endif
70#endif 70#endif