diff options
author | Shan Wei <davidshan@tencent.com> | 2012-04-24 18:21:07 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-25 20:46:59 -0400 |
commit | 8dcf01fc009d12d01fd195ed95eaaee61178f21a (patch) | |
tree | daa9665ec6c4fe8ca17232242c8b3126e7b14076 /net/ipv4 | |
parent | 808db80a7eeff8314ac51654bfefc864582eea13 (diff) |
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/ipv4')
-rw-r--r-- | net/ipv4/inet_diag.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/inet_diag.c b/net/ipv4/inet_diag.c index 8d25a1c557e..9f24028a3ba 100644 --- a/net/ipv4/inet_diag.c +++ b/net/ipv4/inet_diag.c @@ -999,12 +999,12 @@ static int inet_diag_handler_dump(struct sk_buff *skb, struct nlmsghdr *h) return inet_diag_get_exact(skb, h, (struct inet_diag_req_v2 *)NLMSG_DATA(h)); } -static struct sock_diag_handler inet_diag_handler = { +static const struct sock_diag_handler inet_diag_handler = { .family = AF_INET, .dump = inet_diag_handler_dump, }; -static struct sock_diag_handler inet6_diag_handler = { +static const struct sock_diag_handler inet6_diag_handler = { .family = AF_INET6, .dump = inet_diag_handler_dump, }; |