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

@ -227,7 +227,7 @@ struct OperationConfig {
HttpReq httpreq;
long proxyver; /* set to CURLPROXY_HTTP* define */
long ftp_ssl_ccc_mode;
int ftp_filemethod;
long ftp_filemethod;
enum {
CLOBBER_DEFAULT, /* Provides compatibility with previous versions of curl,
by using the default behavior for -o, -O, and -J.

View file

@ -620,7 +620,7 @@ ParameterError add2list(struct curl_slist **list, const char *ptr)
return PARAM_OK;
}
int ftpfilemethod(struct OperationConfig *config, const char *str)
long ftpfilemethod(struct OperationConfig *config, const char *str)
{
if(curl_strequal("singlecwd", str))
return CURLFTPMETHOD_SINGLECWD;

View file

@ -58,7 +58,7 @@ CURLcode get_args(struct OperationConfig *config, const size_t i);
ParameterError add2list(struct curl_slist **list, const char *ptr);
int ftpfilemethod(struct OperationConfig *config, const char *str);
long ftpfilemethod(struct OperationConfig *config, const char *str);
long ftpcccmethod(struct OperationConfig *config, const char *str);