mirror of
https://github.com/curl/curl.git
synced 2026-05-19 21:06:21 +03:00
curl.h: make CURL_IPRESOLVE_* symbols defined as longs
... as `curl_easy_setopt()` expects them to be. Also remove some casting workarounds. Closes #17790
This commit is contained in:
parent
91e8be7fc2
commit
7d73c712f0
4 changed files with 7 additions and 7 deletions
|
|
@ -35,7 +35,7 @@ int main(void)
|
|||
|
||||
curl = curl_easy_init();
|
||||
if(curl) {
|
||||
curl_easy_setopt(curl, CURLOPT_IPRESOLVE, (long)CURL_IPRESOLVE_V6);
|
||||
curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V6);
|
||||
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "https://curl.se/");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue