summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-08-26 20:10:15 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 15:18:23 -0700
commite3b4eadbea77ecb3c3a74d1bc81b392f454c7f2e (patch)
treea94577b99959414edd2b76d5005b5d361badc5a6 /include
parentbed53ea7fef37820b7c92ad74feff1b817c6aae3 (diff)
downloadlinux-3.10-e3b4eadbea77ecb3c3a74d1bc81b392f454c7f2e.tar.gz
linux-3.10-e3b4eadbea77ecb3c3a74d1bc81b392f454c7f2e.tar.bz2
linux-3.10-e3b4eadbea77ecb3c3a74d1bc81b392f454c7f2e.zip
[UDP]: saddr_cmp function should take const socket pointers
This also kills a warning while building ipv6: net/ipv6/udp.c: In function ‘udp_v6_get_port’: net/ipv6/udp.c:66: warning: passing argument 3 of ‘udp_get_port’ from incompatible pointer type Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/udp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/udp.h b/include/net/udp.h
index c490a0f662a..db0c05f6754 100644
--- a/include/net/udp.h
+++ b/include/net/udp.h
@@ -48,7 +48,7 @@ extern struct proto udp_prot;
struct sk_buff;
extern int udp_get_port(struct sock *sk, unsigned short snum,
- int (*saddr_cmp)(struct sock *, struct sock *));
+ int (*saddr_cmp)(const struct sock *, const struct sock *));
extern void udp_err(struct sk_buff *, u32);
extern int udp_sendmsg(struct kiocb *iocb, struct sock *sk,