diff options
author | Shan Wei <davidshan@tencent.com> | 2012-04-24 20:21:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-26 02:46:59 +0200 |
commit | 8dcf01fc009d12d01fd195ed95eaaee61178f21a (patch) | |
tree | daa9665ec6c4fe8ca17232242c8b3126e7b14076 /net/unix | |
parent | ipv6: call consume_skb() in frag/reassembly (diff) | |
download | linux-8dcf01fc009d12d01fd195ed95eaaee61178f21a.tar.xz 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')
-rw-r--r-- | net/unix/diag.c | 2 |
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, }; |