use curl_off_t instead of off_t!
This commit is contained in:
@@ -716,7 +716,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
|
||||
* If known, this should inform curl about the file size of the
|
||||
* to-be-uploaded file.
|
||||
*/
|
||||
data->set.infilesize = va_arg(param, off_t);
|
||||
data->set.infilesize = va_arg(param, curl_off_t);
|
||||
break;
|
||||
case CURLOPT_LOW_SPEED_LIMIT:
|
||||
/*
|
||||
@@ -966,7 +966,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
|
||||
/*
|
||||
* Resume transfer at the give file position
|
||||
*/
|
||||
data->set.set_resume_from = va_arg(param, off_t);
|
||||
data->set.set_resume_from = va_arg(param, curl_off_t);
|
||||
break;
|
||||
case CURLOPT_DEBUGFUNCTION:
|
||||
/*
|
||||
@@ -1279,7 +1279,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
|
||||
/*
|
||||
* Set the maximum size of a file to download.
|
||||
*/
|
||||
data->set.max_filesize = va_arg(param, off_t);
|
||||
data->set.max_filesize = va_arg(param, curl_off_t);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user