convert CURLFTPMETHOD_* to long constants

This commit is contained in:
Viktor Szakats 2025-07-01 17:26:58 +02:00
parent 35081fb461
commit af22a19ced
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
7 changed files with 20 additions and 19 deletions

View file

@ -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);