mirror of
https://github.com/curl/curl.git
synced 2026-06-08 08:04:17 +03:00
CURLOPT_FTP_FILEMETHOD.md drop cast, add note to history
This commit is contained in:
parent
d629d53e8c
commit
ccabfeb15c
1 changed files with 6 additions and 2 deletions
|
|
@ -68,8 +68,7 @@ int main(void)
|
|||
if(curl) {
|
||||
CURLcode res;
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/1/2/3/4/new.txt");
|
||||
curl_easy_setopt(curl, CURLOPT_FTP_FILEMETHOD,
|
||||
(long)CURLFTPMETHOD_SINGLECWD);
|
||||
curl_easy_setopt(curl, CURLOPT_FTP_FILEMETHOD, CURLFTPMETHOD_SINGLECWD);
|
||||
|
||||
res = curl_easy_perform(curl);
|
||||
|
||||
|
|
@ -78,6 +77,11 @@ int main(void)
|
|||
}
|
||||
~~~
|
||||
|
||||
# HISTORY
|
||||
|
||||
CURLFTPMETHOD_\* enums became `long` types in 8.16.0, prior to this version
|
||||
a `long` cast is necessary when passing to curl_easy_setopt(3).
|
||||
|
||||
# %AVAILABILITY%
|
||||
|
||||
# RETURN VALUE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue