From 7ca1aae9f7c9a3d0881e7c452de800e3106a09b6 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 1 Aug 2025 17:30:11 +0200 Subject: [PATCH] CURLOPT_PROTOCOLS.md add history, drop cast --- docs/libcurl/opts/CURLOPT_PROTOCOLS.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/libcurl/opts/CURLOPT_PROTOCOLS.md b/docs/libcurl/opts/CURLOPT_PROTOCOLS.md index fd4d10adfa..37d1e5fe3e 100644 --- a/docs/libcurl/opts/CURLOPT_PROTOCOLS.md +++ b/docs/libcurl/opts/CURLOPT_PROTOCOLS.md @@ -88,7 +88,7 @@ int main(int argc, char **argv) /* only allow HTTP, TFTP and SFTP */ curl_easy_setopt(curl, CURLOPT_PROTOCOLS, - (long)CURLPROTO_HTTP | CURLPROTO_TFTP | CURLPROTO_SFTP); + CURLPROTO_HTTP | CURLPROTO_TFTP | CURLPROTO_SFTP); /* Perform the request */ curl_easy_perform(curl); @@ -96,6 +96,11 @@ int main(int argc, char **argv) } ~~~ +# HISTORY + +**CURLPROTO_*** macros became `long` types in 8.16.0, prior to this version +a `long` cast was necessary when passed to curl_easy_setopt(3). + # DEPRECATED Deprecated since 7.85.0.