mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
808db80a7e
commit
8dcf01fc00
4 changed files with 11 additions and 11 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue