summaryrefslogtreecommitdiff
path: root/src/tool_helpers.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-10-31 21:49:38 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-10-31 21:51:19 +0100
commit95bd2b3e7f00b9ecbd4d5ea7d8bc3b59fcb038c0 (patch)
treea097d3b9398ca33a83fffe7b53fa018bd466e998 /src/tool_helpers.c
parent1071680946686f0a76a1b6fcbadd8ec81253282d (diff)
downloadcurl-95bd2b3e7f00b9ecbd4d5ea7d8bc3b59fcb038c0.tar.gz
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_helpers.c')
-rw-r--r--src/tool_helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_helpers.c b/src/tool_helpers.c
index b89497b33..b5a619b91 100644
--- a/src/tool_helpers.c
+++ b/src/tool_helpers.c
@@ -104,11 +104,11 @@ void customrequest_helper(struct OperationConfig *config, HttpReq req,
if(!method)
;
- else if(curlx_strcasecompare(method, dflt[req])) {
+ else if(curl_strequal(method, dflt[req])) {
notef(config->global, "Unnecessary use of -X or --request, %s is already "
"inferred.\n", dflt[req]);
}
- else if(curlx_strcasecompare(method, "head")) {
+ else if(curl_strequal(method, "head")) {
warnf(config->global,
"Setting custom HTTP method to HEAD with -X/--request may not work "
"the way you want. Consider using -I/--head instead.\n");