diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-11-11 23:03:03 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-11-11 23:03:03 +0000 |
commit | 42acb00c815f2cca5bd1e3653c9f3a47e9256572 (patch) | |
tree | e0b717d0b9732617e29de0b5aa967cc1f27440e8 /lib/transfer.c | |
parent | ca6e77083768858aa34207f8c5dce38b3c05336d (diff) |
moved the bools in the connectdata struct into the substruct named
ConnectBits where the other bools already are
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 58ae8c96a..cdb3f39e9 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -905,7 +905,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, if(!k->upload_done) { - if(conn->upload_chunky) { + if(conn->bits.upload_chunky) { /* if chunked Transfer-Encoding */ buffersize -= (8 + 2 + 2); /* 32bit hex + CRLF + CRLF */ conn->upload_fromhere += 10; /* 32bit hex + CRLF */ @@ -914,7 +914,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, nread = data->set.fread(conn->upload_fromhere, 1, buffersize, data->set.in); - if(conn->upload_chunky) { + if(conn->bits.upload_chunky) { /* if chunked Transfer-Encoding */ char hexbuffer[9]; int hexlen = snprintf(hexbuffer, sizeof(hexbuffer), @@ -1112,13 +1112,13 @@ CURLcode Curl_readwrite_init(struct connectdata *conn) Curl_pgrsSetUploadCounter(data, 0); Curl_pgrsSetDownloadCounter(data, 0); - if (!conn->getheader) { + if (!conn->bits.getheader) { k->header = FALSE; if(conn->size > 0) Curl_pgrsSetDownloadSize(data, conn->size); } /* we want header and/or body, if neither then don't do this! */ - if(conn->getheader || !data->set.no_body) { + if(conn->bits.getheader || !data->set.no_body) { FD_ZERO (&k->readfd); /* clear it */ if(conn->sockfd != -1) { @@ -1200,7 +1200,7 @@ Transfer(struct connectdata *conn) return CURLE_OK; /* we want header and/or body, if neither then don't do this! */ - if(!conn->getheader && data->set.no_body) + if(!conn->bits.getheader && data->set.no_body) return CURLE_OK; k->writefdp = &k->writefd; /* store the address of the set */ @@ -1649,7 +1649,7 @@ Curl_Transfer(struct connectdata *c_conn, /* connection data */ /* now copy all input parameters */ conn->sockfd = sockfd; conn->size = size; - conn->getheader = getheader; + conn->bits.getheader = getheader; conn->bytecountp = bytecountp; conn->writesockfd = writesockfd; conn->writebytecountp = writebytecountp; |