Commit c72eda06 authored by Paul Moore's avatar Paul Moore Committed by David S. Miller

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: default avatarPaul Moore <pmoore@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 41747509
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment