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
|
|
@ -32,8 +32,8 @@ struct sock_diag_handler {
|
|||
int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh);
|
||||
};
|
||||
|
||||
int sock_diag_register(struct sock_diag_handler *h);
|
||||
void sock_diag_unregister(struct sock_diag_handler *h);
|
||||
int sock_diag_register(const struct sock_diag_handler *h);
|
||||
void sock_diag_unregister(const struct sock_diag_handler *h);
|
||||
|
||||
void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh));
|
||||
void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue