From d4f10b54eaca3a0299a51561cd2cf81a88c7e3d3 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 1 Aug 2025 13:25:56 +0200 Subject: [PATCH] CURLOPT_FTP_CREATE_MISSING_DIRS.md drop cast, add note to history --- docs/libcurl/opts/CURLOPT_FTP_CREATE_MISSING_DIRS.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/libcurl/opts/CURLOPT_FTP_CREATE_MISSING_DIRS.md b/docs/libcurl/opts/CURLOPT_FTP_CREATE_MISSING_DIRS.md index ea7d49d776..39e5fffe30 100644 --- a/docs/libcurl/opts/CURLOPT_FTP_CREATE_MISSING_DIRS.md +++ b/docs/libcurl/opts/CURLOPT_FTP_CREATE_MISSING_DIRS.md @@ -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