Oops, should have removed 'not' in previous commit.

This commit is contained in:
Yang Tse 2009-12-30 19:43:12 +00:00
parent 05488d63d0
commit d7cd761047

View File

@ -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);
}