CURLOPT_TIMECONDITION.md drop long cast

This commit is contained in:
Viktor Szakats 2025-08-01 13:39:19 +02:00
parent e5f1bd4555
commit 987f13a23a
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -55,8 +55,7 @@ int main(void)
curl_easy_setopt(curl, CURLOPT_TIMEVALUE, 1577833200L);
/* If-Modified-Since the above time stamp */
curl_easy_setopt(curl, CURLOPT_TIMECONDITION,
(long)CURL_TIMECOND_IFMODSINCE);
curl_easy_setopt(curl, CURLOPT_TIMECONDITION, CURL_TIMECOND_IFMODSINCE);
/* Perform the request */
curl_easy_perform(curl);
@ -64,6 +63,11 @@ int main(void)
}
~~~
# HISTORY
CURL_TIMECOND_\* enums became `long` types in 8.13.0, prior to this version
a `long` cast is necessary when passing to curl_easy_setopt(3).
# %AVAILABILITY%
# RETURN VALUE