1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

strcase: s/strequal/strcasecompare

some more follow-ups to 811a693b80
This commit is contained in:
Daniel Stenberg 2016-10-31 09:37:30 +01:00
parent 532491a27c
commit 44c53cc38b
3 changed files with 16 additions and 16 deletions

View File

@ -708,15 +708,15 @@ static void _ldap_trace (const char *fmt, ...)
*/
static int str2scope (const char *p)
{
if(strequal(p, "one"))
if(strcasecompare(p, "one"))
return LDAP_SCOPE_ONELEVEL;
if(strequal(p, "onetree"))
if(strcasecompare(p, "onetree"))
return LDAP_SCOPE_ONELEVEL;
if(strequal(p, "base"))
if(strcasecompare(p, "base"))
return LDAP_SCOPE_BASE;
if(strequal(p, "sub"))
if(strcasecompare(p, "sub"))
return LDAP_SCOPE_SUBTREE;
if(strequal(p, "subtree"))
if(strcasecompare(p, "subtree"))
return LDAP_SCOPE_SUBTREE;
return (-1);
}

View File

@ -27,7 +27,7 @@
#include <curl/curl.h>
#include "urldata.h"
#include "strequal.h"
#include "strcase.h"
#include "hostcheck.h"
#include "vtls/vtls.h"
#include "sendf.h"

View File

@ -2,7 +2,7 @@
<info>
<keywords>
unittest
curl_strequal
curl_strcasecompare
</keywords>
</info>
@ -16,7 +16,7 @@ none
unittest
</features>
<name>
curl_strequal unit tests
curl_strcasecompare unit tests
</name>
<tool>
unit1301