Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}