summaryrefslogtreecommitdiff
path: root/lib/imap.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/imap.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/imap.c')
-rw-r--r--lib/imap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/imap.c b/lib/imap.c
index a09a00c21..2d8069921 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -1411,8 +1411,7 @@ static int imap_getsock(struct Curl_easy *data,
struct connectdata *conn,
curl_socket_t *socks)
{
- (void)data;
- return Curl_pp_getsock(&conn->proto.imapc.pp, socks);
+ return Curl_pp_getsock(data, &conn->proto.imapc.pp, socks);
}
/***********************************************************************