summaryrefslogtreecommitdiff
path: root/lib/pop3.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-02-25 21:46:37 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-02-25 22:43:45 +0000
commita390454728e5fc19c66e72565c1f3eb720e07efc (patch)
tree53d36a9fa1e5cd19dc98ea656401a0f9d70ca14a /lib/pop3.c
parent005ad9e60d6e08d072afa026ec42faca5a3f3859 (diff)
downloadcurl-a390454728e5fc19c66e72565c1f3eb720e07efc.tar.gz
pop3: Removed bytecountp from the per-request structure
Removed this pointer to a downloaded bytes counter because it was set in pop3_init() to point to the same variable the transfer functions keep the count in (k->bytecount), effectively making the code in transfer.c "*k->bytecountp = k->bytecount" a no-op.
Diffstat (limited to 'lib/pop3.c')
-rw-r--r--lib/pop3.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/pop3.c b/lib/pop3.c
index acdb65f0d..23d7e97b2 100644
--- a/lib/pop3.c
+++ b/lib/pop3.c
@@ -1115,7 +1115,7 @@ static CURLcode pop3_state_command_resp(struct connectdata *conn,
pop3c->strip = 2;
/* POP3 download */
- Curl_setup_transfer(conn, FIRSTSOCKET, -1, FALSE, pop3->bytecountp,
+ Curl_setup_transfer(conn, FIRSTSOCKET, -1, FALSE, NULL,
-1, NULL); /* no upload here */
if(pp->cache) {
@@ -1294,9 +1294,6 @@ static CURLcode pop3_init(struct connectdata *conn)
return CURLE_OUT_OF_MEMORY;
}
- /* Get some initial data into the pop3 struct */
- pop3->bytecountp = &data->req.bytecount;
-
return CURLE_OK;
}