mirror of
https://github.com/curl/curl.git
synced 2026-06-08 12:04:16 +03:00
CURLOPT_FTP_CREATE_MISSING_DIRS.md drop cast, add note to history
This commit is contained in:
parent
b71542e91f
commit
d4f10b54ea
1 changed files with 6 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ int main(void)
|
|||
curl_easy_setopt(curl, CURLOPT_URL,
|
||||
"ftp://example.com/non-existing/new.txt");
|
||||
curl_easy_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS,
|
||||
(long)CURLFTP_CREATE_DIR_RETRY);
|
||||
CURLFTP_CREATE_DIR_RETRY);
|
||||
|
||||
res = curl_easy_perform(curl);
|
||||
|
||||
|
|
@ -76,6 +76,11 @@ int main(void)
|
|||
}
|
||||
~~~
|
||||
|
||||
# HISTORY
|
||||
|
||||
CURLFTP_CREATE_\* 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