mirror of
https://github.com/curl/curl.git
synced 2026-07-26 15:27:16 +03:00
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
This commit is contained in:
parent
1071680946
commit
95bd2b3e7f
8 changed files with 27 additions and 31 deletions
|
|
@ -1559,7 +1559,7 @@ static CURLcode operate_do(struct GlobalConfig *global,
|
|||
char *effective_url = NULL;
|
||||
curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &effective_url);
|
||||
if(effective_url &&
|
||||
curlx_strncasecompare(effective_url, "http", 4)) {
|
||||
curl_strnequal(effective_url, "http", 4)) {
|
||||
/* This was HTTP(S) */
|
||||
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response);
|
||||
if(response != 200 && response != 206) {
|
||||
|
|
@ -1842,8 +1842,8 @@ CURLcode operate(struct GlobalConfig *config, int argc, argv_item_t argv[])
|
|||
|
||||
/* Parse .curlrc if necessary */
|
||||
if((argc == 1) ||
|
||||
(!curlx_strcasecompare(argv[1], "-q") &&
|
||||
!curlx_strcasecompare(argv[1], "--disable"))) {
|
||||
(!curl_strequal(argv[1], "-q") &&
|
||||
!curl_strequal(argv[1], "--disable"))) {
|
||||
parseconfig(NULL, config); /* ignore possible failure */
|
||||
|
||||
/* If we had no arguments then make sure a url was specified in .curlrc */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue