From 42acb00c815f2cca5bd1e3653c9f3a47e9256572 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 11 Nov 2002 23:03:03 +0000 Subject: moved the bools in the connectdata struct into the substruct named ConnectBits where the other bools already are --- lib/transfer.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/transfer.c') 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; -- cgit v1.2.3