mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
use the new types accordingly
This commit is contained in:
parent
bac52f3969
commit
0618e68200
@ -1251,13 +1251,13 @@ static ParameterError add2list(struct curl_slist **list,
|
|||||||
static int ftpfilemethod(struct Configurable *config, char *str)
|
static int ftpfilemethod(struct Configurable *config, char *str)
|
||||||
{
|
{
|
||||||
if(strequal("singlecwd", str))
|
if(strequal("singlecwd", str))
|
||||||
return 3;
|
return CURLFTPMETHOD_SINGLECWD;
|
||||||
if(strequal("nocwd", str))
|
if(strequal("nocwd", str))
|
||||||
return 2;
|
return CURLFTPMETHOD_NOCWD;
|
||||||
if(strequal("multicwd", str))
|
if(strequal("multicwd", str))
|
||||||
return 1;
|
return CURLFTPMETHOD_MULTICWD;
|
||||||
warnf(config, "unrecognized ftp file method '%s', using default\n", str);
|
warnf(config, "unrecognized ftp file method '%s', using default\n", str);
|
||||||
return 1;
|
return CURLFTPMETHOD_MULTICWD;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ParameterError getparameter(char *flag, /* f or -long-flag */
|
static ParameterError getparameter(char *flag, /* f or -long-flag */
|
||||||
|
Loading…
Reference in New Issue
Block a user