* [PATCH] af_unix: constify the sock parameter in unix_sk()
@ 2015-10-06 19:03 Paul Moore
2015-10-08 11:08 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Paul Moore @ 2015-10-06 19:03 UTC (permalink / raw)
To: netdev
Make unix_sk() just like inet[6]_sk() by constify'ing the sock
parameter.
Signed-off-by: Paul Moore <pmoore@redhat.com>
---
include/net/af_unix.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] af_unix: constify the sock parameter in unix_sk()
2015-10-06 19:03 [PATCH] af_unix: constify the sock parameter in unix_sk() Paul Moore
@ 2015-10-08 11:08 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-10-08 11:08 UTC (permalink / raw)
To: pmoore; +Cc: netdev
From: Paul Moore <pmoore@redhat.com>
Date: Tue, 06 Oct 2015 15:03:53 -0400
> Make unix_sk() just like inet[6]_sk() by constify'ing the sock
> parameter.
>
> Signed-off-by: Paul Moore <pmoore@redhat.com>
Applied, thanks Paul.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-08 10:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-06 19:03 [PATCH] af_unix: constify the sock parameter in unix_sk() Paul Moore
2015-10-08 11:08 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).