af_unix: constify the sock parameter in unix_sk()
Subsystems (3)
PATCH 1/1 af_unix: constify the sock parameter in unix_sk()
Make unix_sk() just like inet[6]_sk() by constify'ing the sock parameter.
Signed-off-by Paul Moore <[email protected]>
--- include/net/af_unix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/af_unix.h +1 -1
@@ -64,7 +64,7 @@ struct unix_sock {struct socket_wq peer_wq; }; -static inline struct unix_sock *unix_sk (struct sock *sk) +static inline struct unix_sock *unix_sk (const struct sock *sk) {return (struct unix_sock *)sk; }
From: Paul Moore <[email protected]>
Date: Tue, 06 Oct 2015 15:03:53 -0400
Quoted 4 lines
Make
unix_sk()just like inet[6]_sk() by constify'ing the sock parameter.Signed-off-by Paul Moore <[email protected]>
Applied, thanks Paul.