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:
Christian Hesse 2025-07-01 10:29:13 +02:00 committed by Daniel Stenberg
parent 91e8be7fc2
commit 7d73c712f0
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 7 additions and 7 deletions

View file

@ -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/");