提交 c72eda06 编写于 作者: P Paul Moore 提交者: 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: NPaul Moore <pmoore@redhat.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册