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 <pmoore@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Paul Moore 2015-10-06 15:03:53 -04:00 committed by David S. Miller
parent 41747509b4
commit c72eda0608
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}