diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-01-25 17:23:33 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-01-26 10:12:59 +0100 |
commit | 7173fe98ba153c6b148bbbf98c08a7ae5ce69f60 (patch) | |
tree | 23e7e553be9d1f16b96ba593ae42358b506266ae /lib/ftp.c | |
parent | 1dc8aa870e879d3b2ff0334cdb11842d6321d61f (diff) | |
download | curl-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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. |