diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-10-16 08:23:48 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-10-16 08:23:48 +0000 |
commit | 9d16b4081ed011c11f9876ae2685076e92113593 (patch) | |
tree | 566029901ed6edccdc424814d068c9db75723d2c /src | |
parent | 545cafce9b81f4bda89072a5ebb2d1632f10dc44 (diff) |
Renamed Curl_ascii_equal to Curl_raw_equal and bugfixed the my_toupper function
used in strequal.c so now all test cases run fine for me again.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c index 6f1e9b47c..949fc2ff8 100644 --- a/src/main.c +++ b/src/main.c @@ -1501,11 +1501,11 @@ static ParameterError add2list(struct curl_slist **list, static int ftpfilemethod(struct Configurable *config, const char *str) { - if(curlx_ascii_equal("singlecwd", str)) + if(curlx_raw_equal("singlecwd", str)) return CURLFTPMETHOD_SINGLECWD; - if(curlx_ascii_equal("nocwd", str)) + if(curlx_raw_equal("nocwd", str)) return CURLFTPMETHOD_NOCWD; - if(curlx_ascii_equal("multicwd", str)) + if(curlx_raw_equal("multicwd", str)) return CURLFTPMETHOD_MULTICWD; warnf(config, "unrecognized ftp file method '%s', using default\n", str); return CURLFTPMETHOD_MULTICWD; @@ -1513,9 +1513,9 @@ static int ftpfilemethod(struct Configurable *config, const char *str) static int ftpcccmethod(struct Configurable *config, const char *str) { - if(curlx_ascii_equal("passive", str)) + if(curlx_raw_equal("passive", str)) return CURLFTPSSL_CCC_PASSIVE; - if(curlx_ascii_equal("active", str)) + if(curlx_raw_equal("active", str)) return CURLFTPSSL_CCC_ACTIVE; warnf(config, "unrecognized ftp CCC method '%s', using default\n", str); return CURLFTPSSL_CCC_PASSIVE; @@ -1765,7 +1765,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ if(curlx_strnequal(aliases[j].lname, word, fnam)) { longopt = TRUE; numhits++; - if(curlx_ascii_equal(aliases[j].lname, word)) { + if(curlx_raw_equal(aliases[j].lname, word)) { parse = aliases[j].letter; hit = j; numhits = 1; /* a single unique hit */ @@ -2450,7 +2450,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ break; case 'f': /* crypto engine */ GetStr(&config->engine, nextarg); - if (config->engine && curlx_ascii_equal(config->engine,"list")) + if (config->engine && curlx_raw_equal(config->engine,"list")) config->list_engines = TRUE; break; case 'g': /* CA info PEM file */ |