Replaced stricmp() usage with our portable strequal()
This commit is contained in:
parent
1e9a946e6d
commit
a487c80535
10
lib/ldap.c
10
lib/ldap.c
@ -488,15 +488,15 @@ static void _ldap_trace (const char *fmt, ...)
|
|||||||
*/
|
*/
|
||||||
static int str2scope (const char *p)
|
static int str2scope (const char *p)
|
||||||
{
|
{
|
||||||
if(!stricmp(p, "one"))
|
if(!strequal(p, "one"))
|
||||||
return LDAP_SCOPE_ONELEVEL;
|
return LDAP_SCOPE_ONELEVEL;
|
||||||
if(!stricmp(p, "onetree"))
|
if(!strequal(p, "onetree"))
|
||||||
return LDAP_SCOPE_ONELEVEL;
|
return LDAP_SCOPE_ONELEVEL;
|
||||||
if(!stricmp(p, "base"))
|
if(!strequal(p, "base"))
|
||||||
return LDAP_SCOPE_BASE;
|
return LDAP_SCOPE_BASE;
|
||||||
if(!stricmp(p, "sub"))
|
if(!strequal(p, "sub"))
|
||||||
return LDAP_SCOPE_SUBTREE;
|
return LDAP_SCOPE_SUBTREE;
|
||||||
if(!stricmp( p, "subtree"))
|
if(!strequal( p, "subtree"))
|
||||||
return LDAP_SCOPE_SUBTREE;
|
return LDAP_SCOPE_SUBTREE;
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user