diff options
author | Paul Moore <pmoore@redhat.com> | 2015-10-06 22:03:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-08 14:05:18 +0300 |
commit | c72eda0608a30ca6aa8722d4afdbd2557b3c9345 (patch) | |
tree | a6d2eb54513043620323a8a626084332a86c1990 /include | |
parent | 41747509b437dcca880b52a035453f5e4ba14aa4 (diff) | |
download | linux-c72eda0608a30ca6aa8722d4afdbd2557b3c9345.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/af_unix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/af_unix.h b/include/net/af_unix.h index cb1b9bbda332..b36d837c701e 100644 --- a/include/net/af_unix.h +++ b/include/net/af_unix.h @@ -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; } |