summaryrefslogtreecommitdiffstats
path: root/include/net/af_unix.h
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2015-10-06 21:03:53 +0200
committerDavid S. Miller <davem@davemloft.net>2015-10-08 13:05:18 +0200
commitc72eda0608a30ca6aa8722d4afdbd2557b3c9345 (patch)
treea6d2eb54513043620323a8a626084332a86c1990 /include/net/af_unix.h
parentMerge branch 'ovs-ct-fixes' (diff)
downloadlinux-c72eda0608a30ca6aa8722d4afdbd2557b3c9345.tar.xz
linux-c72eda0608a30ca6aa8722d4afdbd2557b3c9345.zip
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/net/af_unix.h')
-rw-r--r--include/net/af_unix.h2
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;
}