aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-28 16:19:03 +0000
committerYang Tse <yangsita@gmail.com>2009-05-28 16:19:03 +0000
commit348ffbc47e4c88def3bf48a8aa794e9270527361 (patch)
treea1fbc3e8a4ac175e35db433c47123041bd86f973 /lib
parentf13cbcf17568fcfdd4160448ceb84e2e0a0704ee (diff)
fix compiler warning: variable was set but never used
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 5b48d9e5e..fd5b3889f 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -130,19 +130,22 @@ CURLcode Curl_fillreadbuffer(struct connectdata *conn, int bytes, int *nreadp)
struct SessionHandle *data = conn->data;
size_t buffersize = (size_t)bytes;
int nread;
+#ifdef CURL_DOES_CONVERSIONS
bool sending_http_headers = FALSE;
- if(data->req.upload_chunky) {
- /* if chunked Transfer-Encoding */
- buffersize -= (8 + 2 + 2); /* 32bit hex + CRLF + CRLF */
- data->req.upload_fromhere += (8 + 2); /* 32bit hex + CRLF */
- }
if((conn->protocol&PROT_HTTP) &&
(data->state.proto.http->sending == HTTPSEND_REQUEST)) {
/* We're sending the HTTP request headers, not the data.
Remember that so we don't re-translate them into garbage. */
sending_http_headers = TRUE;
}
+#endif
+
+ if(data->req.upload_chunky) {
+ /* if chunked Transfer-Encoding */
+ buffersize -= (8 + 2 + 2); /* 32bit hex + CRLF + CRLF */
+ data->req.upload_fromhere += (8 + 2); /* 32bit hex + CRLF */
+ }
/* this function returns a size_t, so we typecast to int to prevent warnings
with picky compilers */