mirror of
https://github.com/curl/curl.git
synced 2026-07-26 08:57:16 +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
|
|
@ -1427,7 +1427,7 @@ static CURLUcode urlget_url(const CURLU *u, char **part, unsigned int flags)
|
|||
bool depunyfy = (flags & CURLU_PUNY2IDN) ? 1 : 0;
|
||||
bool urlencode = (flags & CURLU_URLENCODE) ? 1 : 0;
|
||||
char portbuf[7];
|
||||
if(u->scheme && strcasecompare("file", u->scheme)) {
|
||||
if(u->scheme && curl_strequal("file", u->scheme)) {
|
||||
url = aprintf("file://%s%s%s%s%s",
|
||||
u->path,
|
||||
show_query ? "?": "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue