aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-03-14 00:07:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-03-14 00:07:21 +0000
commit0618e6820021355584f5fc7430bad1ed7c9ccea9 (patch)
tree8c9d1286cd8ec03e516097478703adcf3f0d0fe3
parentbac52f3969738c81c90a8cb09805d38509ca3297 (diff)
use the new types accordingly
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index aca7aa3f6..2de667606 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1251,13 +1251,13 @@ static ParameterError add2list(struct curl_slist **list,
static int ftpfilemethod(struct Configurable *config, char *str)
{
if(strequal("singlecwd", str))
- return 3;
+ return CURLFTPMETHOD_SINGLECWD;
if(strequal("nocwd", str))
- return 2;
+ return CURLFTPMETHOD_NOCWD;
if(strequal("multicwd", str))
- return 1;
+ return CURLFTPMETHOD_MULTICWD;
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 */