aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-01 16:28:00 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-01 16:28:00 +0000
commitcb72a80fe06d96c46e69a869cceb16b491fcb23b (patch)
treec95265058cb569221325355003ae22710aee141b /lib/http.c
parent71d81f1f7532f80ef57e114e45e93c72aefe9850 (diff)
Use CURL_FORMAT_OFF_T for printf()inf curl_off_t variables.
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/http.c b/lib/http.c
index 348e0853e..26e2ec0ac 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1272,7 +1272,8 @@ CURLcode Curl_http(struct connectdata *conn)
passed += actuallyread;
if(actuallyread != readthisamountnow) {
- failf(data, "Could only read %Od bytes from the input",
+ failf(data, "Could only read " CURL_FORMAT_OFF_T
+ " bytes from the input",
passed);
return CURLE_READ_ERROR;
}
@@ -1311,7 +1312,8 @@ CURLcode Curl_http(struct connectdata *conn)
curl_off_t total_expected_size=
conn->resume_from + data->set.infilesize;
conn->allocptr.rangeline =
- aprintf("Content-Range: bytes %s%Od/%Od\r\n",
+ aprintf("Content-Range: bytes %s" CURL_FORMAT_OFF_T "/"
+ CURL_FORMAT_OFF_T "\r\n",
conn->range, total_expected_size-1,
total_expected_size);
}
@@ -1319,7 +1321,7 @@ CURLcode Curl_http(struct connectdata *conn)
/* Range was selected and then we just pass the incoming range and
append total size */
conn->allocptr.rangeline =
- aprintf("Content-Range: bytes %s/%Od\r\n",
+ aprintf("Content-Range: bytes %s/" CURL_FORMAT_OFF_T "\r\n",
conn->range, data->set.infilesize);
}
}
@@ -1549,7 +1551,7 @@ CURLcode Curl_http(struct connectdata *conn)
if((data->set.infilesize>0) && !conn->bits.upload_chunky)
/* only add Content-Length if not uploading chunked */
add_bufferf(req_buffer,
- "Content-Length: %Od\r\n", /* file size */
+ "Content-Length: " CURL_FORMAT_OFF_T "\r\n", /* size */
data->set.infilesize );
add_bufferf(req_buffer, "\r\n");