mirror of
https://github.com/curl/curl.git
synced 2026-07-28 20:43:07 +03:00
CURLOPT_PROTOCOLS.md add history, drop cast
This commit is contained in:
parent
03b9592776
commit
7ca1aae9f7
1 changed files with 6 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue