mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:43:33 +03:00
lib/src/docs/test: improve curl_easy_setopt() calls
Fix invokes where the argument was not the correct type. Closes #17160
This commit is contained in:
parent
179aeeaf22
commit
f9f1a15699
22 changed files with 39 additions and 34 deletions
|
|
@ -56,10 +56,10 @@ static curl_off_t sftpGetRemoteFileSize(const char *i_remoteFile)
|
|||
curl_easy_setopt(curlHandlePtr, CURLOPT_VERBOSE, 1L);
|
||||
|
||||
curl_easy_setopt(curlHandlePtr, CURLOPT_URL, i_remoteFile);
|
||||
curl_easy_setopt(curlHandlePtr, CURLOPT_NOPROGRESS, 1);
|
||||
curl_easy_setopt(curlHandlePtr, CURLOPT_NOBODY, 1);
|
||||
curl_easy_setopt(curlHandlePtr, CURLOPT_HEADER, 1);
|
||||
curl_easy_setopt(curlHandlePtr, CURLOPT_FILETIME, 1);
|
||||
curl_easy_setopt(curlHandlePtr, CURLOPT_NOPROGRESS, 1L);
|
||||
curl_easy_setopt(curlHandlePtr, CURLOPT_NOBODY, 1L);
|
||||
curl_easy_setopt(curlHandlePtr, CURLOPT_HEADER, 1L);
|
||||
curl_easy_setopt(curlHandlePtr, CURLOPT_FILETIME, 1L);
|
||||
|
||||
result = curl_easy_perform(curlHandlePtr);
|
||||
if(CURLE_OK == result) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue