summaryrefslogtreecommitdiffstats
path: root/net/dccp/minisocks.c
diff options
context:
space:
mode:
authorEric Dumazet2015-09-29 16:42:39 +0200
committerDavid S. Miller2015-09-30 01:53:07 +0200
commita00e74442bac5ad19a929d097370da7e07540ea6 (patch)
tree22e3c0c3f94dfce499a3ab3ff567c59e5432c3b5 /net/dccp/minisocks.c
parentMerge branch 'ipv4-routing-cleanups' (diff)
downloadkernel-qcow2-linux-a00e74442bac5ad19a929d097370da7e07540ea6.tar.gz
kernel-qcow2-linux-a00e74442bac5ad19a929d097370da7e07540ea6.tar.xz
kernel-qcow2-linux-a00e74442bac5ad19a929d097370da7e07540ea6.zip
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>
Diffstat (limited to 'net/dccp/minisocks.c')
-rw-r--r--net/dccp/minisocks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dccp/minisocks.c b/net/dccp/minisocks.c
index 838f524cf11a..9bfd0dc1e6cb 100644
--- a/net/dccp/minisocks.c
+++ b/net/dccp/minisocks.c
@@ -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");