summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2015-10-06 15:03:53 -0400
committerDavid S. Miller <davem@davemloft.net>2015-10-08 04:05:18 -0700
commitc72eda0608a30ca6aa8722d4afdbd2557b3c9345 (patch)
treea6d2eb54513043620323a8a626084332a86c1990
parent41747509b437dcca880b52a035453f5e4ba14aa4 (diff)
downloadop-kernel-dev-c72eda0608a30ca6aa8722d4afdbd2557b3c9345.zip
op-kernel-dev-c72eda0608a30ca6aa8722d4afdbd2557b3c9345.tar.gz
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>
-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 cb1b9bb..b36d837 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;
}
OpenPOWER on IntegriCloud