mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:21:41 +03:00
lib: drop two interim macros in favor of native libcurl API calls
Drop `strcasecompare` and `strncasecompare` in favor of libcurl API calls `curl_strequal` and `curl_strnequal` respectively. Also drop unnecessary `strcase.h` includes. Include `curl/curl.h` instead where it wasn't included before. Closes #17772
This commit is contained in:
parent
d553f7e9f0
commit
a3787f98ac
54 changed files with 223 additions and 260 deletions
|
|
@ -23,7 +23,6 @@
|
|||
***************************************************************************/
|
||||
|
||||
#include "curl_setup.h"
|
||||
#include "strcase.h"
|
||||
#include "easyoptions.h"
|
||||
|
||||
#ifndef CURL_DISABLE_GETOPTIONS
|
||||
|
|
@ -37,7 +36,7 @@ static const struct curl_easyoption *lookup(const char *name, CURLoption id)
|
|||
const struct curl_easyoption *o = &Curl_easyopts[0];
|
||||
do {
|
||||
if(name) {
|
||||
if(strcasecompare(o->name, name))
|
||||
if(curl_strequal(o->name, name))
|
||||
return o;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue