mirror of
https://github.com/curl/curl.git
synced 2026-08-25 16:03:40 +03:00
Use CURL_FORMAT_OFF_T for printf()inf curl_off_t variables.
This commit is contained in:
parent
71d81f1f75
commit
cb72a80fe0
5 changed files with 24 additions and 21 deletions
|
|
@ -2411,7 +2411,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
|||
if(conn->resume_from) {
|
||||
if(!conn->bits.use_range) {
|
||||
/* if it already was in use, we just skip this */
|
||||
snprintf(resumerange, sizeof(resumerange), "%Od-",
|
||||
snprintf(resumerange, sizeof(resumerange), CURL_FORMAT_OFF_T "-",
|
||||
conn->resume_from);
|
||||
conn->range=strdup(resumerange); /* tell ourselves to fetch this range */
|
||||
conn->bits.rangestringalloc = TRUE; /* mark as allocated */
|
||||
|
|
@ -2941,7 +2941,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
|||
*/
|
||||
conn->resume_from = data->set.set_resume_from;
|
||||
if (conn->resume_from) {
|
||||
snprintf(resumerange, sizeof(resumerange), "%Od-",
|
||||
snprintf(resumerange, sizeof(resumerange), CURL_FORMAT_OFF_T "-",
|
||||
conn->resume_from);
|
||||
if (conn->bits.rangestringalloc == TRUE)
|
||||
free(conn->range);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue