aboutsummaryrefslogtreecommitdiff
path: root/lib/ldap.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-12-30 19:43:12 +0000
committerYang Tse <yangsita@gmail.com>2009-12-30 19:43:12 +0000
commitd7cd761047376576d281bbc2dc40c02afa251912 (patch)
tree776dec45ab77efecda63bb6874e95720eac58b41 /lib/ldap.c
parent05488d63d070ba2c22d3a9649628e37b4da0a5f0 (diff)
Oops, should have removed 'not' in previous commit.
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 708d8f828..1b86e5925 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(!strequal(p, "one"))
+ if(strequal(p, "one"))
return LDAP_SCOPE_ONELEVEL;
- if(!strequal(p, "onetree"))
+ if(strequal(p, "onetree"))
return LDAP_SCOPE_ONELEVEL;
- if(!strequal(p, "base"))
+ if(strequal(p, "base"))
return LDAP_SCOPE_BASE;
- if(!strequal(p, "sub"))
+ if(strequal(p, "sub"))
return LDAP_SCOPE_SUBTREE;
- if(!strequal( p, "subtree"))
+ if(strequal( p, "subtree"))
return LDAP_SCOPE_SUBTREE;
return (-1);
}