aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index aa1823050b00..77e265d7bb8f 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -139,7 +139,7 @@ static inline int udp_lport_inuse(u16 num)
139 * @saddr_comp: AF-dependent comparison of bound local IP addresses 139 * @saddr_comp: AF-dependent comparison of bound local IP addresses
140 */ 140 */
141int udp_get_port(struct sock *sk, unsigned short snum, 141int udp_get_port(struct sock *sk, unsigned short snum,
142 int (*saddr_cmp)(struct sock *sk1, struct sock *sk2)) 142 int (*saddr_cmp)(const struct sock *sk1, const struct sock *sk2))
143{ 143{
144 struct hlist_node *node; 144 struct hlist_node *node;
145 struct hlist_head *head; 145 struct hlist_head *head;
@@ -210,7 +210,7 @@ fail:
210 return error; 210 return error;
211} 211}
212 212
213static inline int ipv4_rcv_saddr_equal(struct sock *sk1, struct sock *sk2) 213static inline int ipv4_rcv_saddr_equal(const struct sock *sk1, const struct sock *sk2)
214{ 214{
215 struct inet_sock *inet1 = inet_sk(sk1), *inet2 = inet_sk(sk2); 215 struct inet_sock *inet1 = inet_sk(sk1), *inet2 = inet_sk(sk2);
216 216