diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-10 07:15:52 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-10 13:45:28 -0400 |
commit | 491da2a477077357c8206a601559e2ea58f224db (patch) | |
tree | 25f18219a3df70828467d08bab2e8fccc0dea57e /net/core/sock_diag.c | |
parent | 3855634deb051bbce155d149bca05b99a3528d5d (diff) |
net: constify sock_diag_check_cookie()
sock_diag_check_cookie() second parameter is constant
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sock_diag.c')
-rw-r--r-- | net/core/sock_diag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock_diag.c b/net/core/sock_diag.c index ad704c757bb4..96e70ee05a8d 100644 --- a/net/core/sock_diag.c +++ b/net/core/sock_diag.c @@ -13,7 +13,7 @@ static const struct sock_diag_handler *sock_diag_handlers[AF_MAX]; static int (*inet_rcv_compat)(struct sk_buff *skb, struct nlmsghdr *nlh); static DEFINE_MUTEX(sock_diag_table_mutex); -int sock_diag_check_cookie(void *sk, __u32 *cookie) +int sock_diag_check_cookie(void *sk, const __u32 *cookie) { if ((cookie[0] != INET_DIAG_NOCOOKIE || cookie[1] != INET_DIAG_NOCOOKIE) && |