mirror of
https://github.com/curl/curl.git
synced 2026-07-31 01:48:03 +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
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue