summaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-25 17:23:33 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-26 10:12:59 +0100
commit7173fe98ba153c6b148bbbf98c08a7ae5ce69f60 (patch)
tree23e7e553be9d1f16b96ba593ae42358b506266ae /lib/ftp.c
parent1dc8aa870e879d3b2ff0334cdb11842d6321d61f (diff)
downloadcurl-7173fe98ba153c6b148bbbf98c08a7ae5ce69f60.tar.gz
pingpong: remove the 'conn' struct member
... as it's superfluous now when Curl_easy is passed in and we can derive the connection from that instead and avoid the duplicate copy. Closes #6525
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 69b3f35df..c7162e152 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -803,8 +803,7 @@ static int ftp_getsock(struct Curl_easy *data,
struct connectdata *conn,
curl_socket_t *socks)
{
- (void)data;
- return Curl_pp_getsock(&conn->proto.ftpc.pp, socks);
+ return Curl_pp_getsock(data, &conn->proto.ftpc.pp, socks);
}
/* For the FTP "DO_MORE" phase only */
@@ -850,7 +849,7 @@ static int ftp_domore_getsock(struct Curl_easy *data,
return bits;
}
- return Curl_pp_getsock(&conn->proto.ftpc.pp, socks);
+ return Curl_pp_getsock(data, &conn->proto.ftpc.pp, socks);
}
/* This is called after the FTP_QUOTE state is passed.