summaryrefslogtreecommitdiffstats
path: root/net/unix/diag.c
diff options
context:
space:
mode:
authorShan Wei2012-04-24 20:21:07 +0200
committerDavid S. Miller2012-04-26 02:46:59 +0200
commit8dcf01fc009d12d01fd195ed95eaaee61178f21a (patch)
treedaa9665ec6c4fe8ca17232242c8b3126e7b14076 /net/unix/diag.c
parentipv6: call consume_skb() in frag/reassembly (diff)
downloadkernel-qcow2-linux-8dcf01fc009d12d01fd195ed95eaaee61178f21a.tar.gz
kernel-qcow2-linux-8dcf01fc009d12d01fd195ed95eaaee61178f21a.tar.xz
kernel-qcow2-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,
};