]> granicus.if.org Git - curl/commitdiff
pop3: Removed bytecountp from the per-request structure
authorSteve Holme <steve_holme@hotmail.com>
Mon, 25 Feb 2013 21:46:37 +0000 (21:46 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Mon, 25 Feb 2013 22:43:45 +0000 (22:43 +0000)
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.

lib/pop3.c
lib/pop3.h

index acdb65f0d1659ea12da2f43c0a242fc902b61d05..23d7e97b29947761f96f57a2c45036ccfc685a0b 100644 (file)
@@ -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;
 }
 
index 459a03d7ade2075660c2d03fcaa1e121d77f1d11..4277535aed1c6c36715263d5ea173e565a01c687 100644 (file)
@@ -57,7 +57,6 @@ typedef enum {
    perhaps the SessionHandle is changed between the times the connection is
    used. */
 struct POP3 {
-  curl_off_t *bytecountp;
   curl_pp_transfer transfer;
   char *id;               /* Message ID */
   char *custom;           /* Custom Request */