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:
Daniel Stenberg 2025-04-23 23:13:29 +02:00
parent 179aeeaf22
commit f9f1a15699
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
22 changed files with 39 additions and 34 deletions

View file

@ -35,7 +35,7 @@ int main(void)
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V6);
curl_easy_setopt(curl, CURLOPT_IPRESOLVE, (long)CURL_IPRESOLVE_V6);
curl_easy_setopt(curl, CURLOPT_URL, "https://curl.se/");