Skip to content

Commit

Permalink
af_unix: constify the sock parameter in unix_sk()
Browse files Browse the repository at this point in the history
Make unix_sk() just like inet[6]_sk() by constify'ing the sock
parameter.

Signed-off-by: Paul Moore <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
pcmoore authored and davem330 committed Oct 8, 2015
1 parent 4174750 commit c72eda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/af_unix.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c72eda0

Please sign in to comment.