summaryrefslogtreecommitdiffstats
path: root/net/unix/diag.c
diff options
context:
space:
mode:
authorShan Wei <davidshan@tencent.com>2012-04-24 18:21:07 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-25 20:46:59 -0400
commit8dcf01fc009d12d01fd195ed95eaaee61178f21a (patch)
treedaa9665ec6c4fe8ca17232242c8b3126e7b14076 /net/unix/diag.c
parent808db80a7eeff8314ac51654bfefc864582eea13 (diff)
downloadlinux-8dcf01fc009d12d01fd195ed95eaaee61178f21a.tar.gz
linux-8dcf01fc009d12d01fd195ed95eaaee61178f21a.tar.bz2
linux-8dcf01fc009d12d01fd195ed95eaaee61178f21a.zip
net: sock_diag_handler structs can be const
read only, so change it to const. Signed-off-by: Shan Wei <davidshan@tencent.com> Acked-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/diag.c')
-rw-r--r--net/unix/diag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/unix/diag.c b/net/unix/diag.c
index f0486ae9ebe6..47d3002737f5 100644
--- a/net/unix/diag.c
+++ b/net/unix/diag.c
@@ -310,7 +310,7 @@ static int unix_diag_handler_dump(struct sk_buff *skb, struct nlmsghdr *h)
return unix_diag_get_exact(skb, h, (struct unix_diag_req *)NLMSG_DATA(h));
}
-static struct sock_diag_handler unix_diag_handler = {
+static const struct sock_diag_handler unix_diag_handler = {
.family = AF_UNIX,
.dump = unix_diag_handler_dump,
};