mirror of
https://github.com/curl/curl.git
synced 2026-08-03 07:40:33 +03:00
convert CURLFTPMETHOD_* to long constants
This commit is contained in:
parent
35081fb461
commit
af22a19ced
7 changed files with 20 additions and 19 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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue