aboutsummaryrefslogtreecommitdiff
path: root/lib/ldap.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-12-30 15:47:23 +0000
committerYang Tse <yangsita@gmail.com>2009-12-30 15:47:23 +0000
commita487c80535c890634baf3cee15cf5fef74b2c57d (patch)
tree14f82edd755c05e2c3d52daa13c3e40ee44f9e71 /lib/ldap.c
parent1e9a946e6d2714a5e3f143f500fca45a2011e5f1 (diff)
Replaced stricmp() usage with our portable strequal()
Diffstat (limited to 'lib/ldap.c')
-rw-r--r--lib/ldap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index 44cc8e41d..708d8f828 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -488,15 +488,15 @@ static void _ldap_trace (const char *fmt, ...)
*/
static int str2scope (const char *p)
{
- if(!stricmp(p, "one"))
+ if(!strequal(p, "one"))
return LDAP_SCOPE_ONELEVEL;
- if(!stricmp(p, "onetree"))
+ if(!strequal(p, "onetree"))
return LDAP_SCOPE_ONELEVEL;
- if(!stricmp(p, "base"))
+ if(!strequal(p, "base"))
return LDAP_SCOPE_BASE;
- if(!stricmp(p, "sub"))
+ if(!strequal(p, "sub"))
return LDAP_SCOPE_SUBTREE;
- if(!stricmp( p, "subtree"))
+ if(!strequal( p, "subtree"))
return LDAP_SCOPE_SUBTREE;
return (-1);
}