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
This commit is contained in:
Daniel Stenberg 2021-01-25 17:23:33 +01:00
parent 1dc8aa870e
commit 7173fe98ba
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 16 additions and 20 deletions

View file

@ -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.