dccp: constify dccp_create_openreq_child() sock argument
authorEric Dumazet <edumazet@google.com>
Tue, 29 Sep 2015 14:42:46 +0000 (07:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2015 23:53:08 +0000 (16:53 -0700)
socket no longer needs to be read/write

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/dccp.h
net/dccp/minisocks.c

index 8ed1df2771bd65c937020addfbd9e80706d113de..2409619b7043f52376d72ad9d8fba36649817232 100644 (file)
@@ -270,7 +270,7 @@ int dccp_reqsk_init(struct request_sock *rq, struct dccp_sock const *dp,
 
 int dccp_v4_conn_request(struct sock *sk, struct sk_buff *skb);
 
-struct sock *dccp_create_openreq_child(struct sock *sk,
+struct sock *dccp_create_openreq_child(const struct sock *sk,
                                       const struct request_sock *req,
                                       const struct sk_buff *skb);
 
index 9bfd0dc1e6cb62fb4189098e48791ace9a0a5ee4..d10aace43672a962080c68b20c2fa9ba36d8ac83 100644 (file)
@@ -72,7 +72,7 @@ void dccp_time_wait(struct sock *sk, int state, int timeo)
        dccp_done(sk);
 }
 
-struct sock *dccp_create_openreq_child(struct sock *sk,
+struct sock *dccp_create_openreq_child(const struct sock *sk,
                                       const struct request_sock *req,
                                       const struct sk_buff *skb)
 {