aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sock_diag.h
diff options
context:
space:
mode:
authorShan Wei <davidshan@tencent.com>2012-04-24 18:21:07 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-25 20:46:59 -0400
commit8dcf01fc009d12d01fd195ed95eaaee61178f21a (patch)
treedaa9665ec6c4fe8ca17232242c8b3126e7b14076 /include/linux/sock_diag.h
parentipv6: call consume_skb() in frag/reassembly (diff)
downloadlinux-dev-8dcf01fc009d12d01fd195ed95eaaee61178f21a.tar.xz
linux-dev-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 'include/linux/sock_diag.h')
-rw-r--r--include/linux/sock_diag.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sock_diag.h b/include/linux/sock_diag.h
index 251729a47880..db4bae78bda9 100644
--- a/include/linux/sock_diag.h
+++ b/include/linux/sock_diag.h
@@ -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));