tcp/dccp: constify send_synack and send_reset socket argument
None of these functions need to change the socket, make it const. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
4c7e622ddf
commit
a00e74442b
@@ -236,7 +236,7 @@ int dccp_child_process(struct sock *parent, struct sock *child,
|
||||
|
||||
EXPORT_SYMBOL_GPL(dccp_child_process);
|
||||
|
||||
void dccp_reqsk_send_ack(struct sock *sk, struct sk_buff *skb,
|
||||
void dccp_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb,
|
||||
struct request_sock *rsk)
|
||||
{
|
||||
DCCP_BUG("DCCP-ACK packets are never sent in LISTEN/RESPOND state");
|
||||
|
Reference in New Issue
Block a user