diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-10-31 21:49:38 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-10-31 21:51:19 +0100 |
commit | 95bd2b3e7f00b9ecbd4d5ea7d8bc3b59fcb038c0 (patch) | |
tree | a097d3b9398ca33a83fffe7b53fa018bd466e998 /src/tool_getparam.c | |
parent | 1071680946686f0a76a1b6fcbadd8ec81253282d (diff) |
strcase: make the tool use curl_str[n]equal instead
As they are after all part of the public API. Saves space and reduces
complexity. Remove the strcase defines from the curlx_ family.
Suggested-by: Dan Fandrich
Idea: https://curl.haxx.se/mail/lib-2016-10/0136.html
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r-- | src/tool_getparam.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c index a546888c5..95dd4555f 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -416,10 +416,10 @@ ParameterError getparameter(char *flag, /* f or -long-flag */ } for(j = 0; j < sizeof(aliases)/sizeof(aliases[0]); j++) { - if(curlx_strncasecompare(aliases[j].lname, word, fnam)) { + if(curl_strnequal(aliases[j].lname, word, fnam)) { longopt = TRUE; numhits++; - if(curlx_strcasecompare(aliases[j].lname, word)) { + if(curl_strequal(aliases[j].lname, word)) { parse = aliases[j].letter; hit = j; numhits = 1; /* a single unique hit */ @@ -1343,7 +1343,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */ break; case 'f': /* crypto engine */ GetStr(&config->engine, nextarg); - if(config->engine && curlx_strcasecompare(config->engine, "list")) + if(config->engine && curl_strequal(config->engine, "list")) return PARAM_ENGINES_REQUESTED; break; case 'g': /* CA info PEM file */ @@ -1377,7 +1377,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */ case 'm': /* TLS authentication type */ if(curlinfo->features & CURL_VERSION_TLSAUTH_SRP) { GetStr(&config->tls_authtype, nextarg); - if(!strcasecompare(config->tls_authtype, "SRP")) + if(!curl_strequal(config->tls_authtype, "SRP")) return PARAM_LIBCURL_DOESNT_SUPPORT; /* only support TLS-SRP */ } else |