mirror of
https://github.com/curl/curl.git
synced 2026-08-04 07:40:03 +03:00
strcasecompare: is the new name for strequal()
... to make it less likely that we forget that the function actually does case insentive compares. Also replaced several invokes of the function with a plain strcmp when case sensitivity is not an issue (like comparing with "-").
This commit is contained in:
parent
1833a45dde
commit
502acba2af
36 changed files with 98 additions and 111 deletions
|
|
@ -126,7 +126,7 @@ void ourWriteOut(CURL *curl, struct OutStruct *outs, const char *writeinfo)
|
|||
keepit = *end;
|
||||
*end = 0; /* zero terminate */
|
||||
for(i = 0; replacements[i].name; i++) {
|
||||
if(curl_strequal(ptr, replacements[i].name)) {
|
||||
if(curl_strcasecompare(ptr, replacements[i].name)) {
|
||||
match = TRUE;
|
||||
switch(replacements[i].id) {
|
||||
case VAR_EFFECTIVE_URL:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue