]> git.sur5r.net Git - openldap/commitdiff
unifdef -DLDAP_SCOPE_SUBORDINATE
authorKurt Zeilenga <kurt@openldap.org>
Sat, 26 Nov 2005 06:35:36 +0000 (06:35 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 26 Nov 2005 06:35:36 +0000 (06:35 +0000)
libraries/libldap/request.c
libraries/libldap/url.c

index 84dc5a8e14deabf8aae727a3f8ce25613862730a..0b9aa27da6f577dd8d7c01ed9cec2b61c068c6dd 100644 (file)
@@ -1300,9 +1300,7 @@ re_encode_request( LDAP *ld,
                                scope = LDAP_SCOPE_BASE;
                                break;
                        case LDAP_SCOPE_SUBTREE:
-#ifdef LDAP_SCOPE_SUBORDINATE
                        case LDAP_SCOPE_SUBORDINATE:
-#endif
                                scope = LDAP_SCOPE_SUBTREE;
                                break;
                        }
index 8fe30b911a87c7c884cf572de9dff304a22ad7e7..3365fbcd6d6e1aef0d877f00faa88b63e551955b 100644 (file)
@@ -275,13 +275,11 @@ static int str2scope( const char *p )
        } else if ( strcasecmp( p, "subtree" ) == 0 ) {
                return LDAP_SCOPE_SUBTREE;
 
-#ifdef LDAP_SCOPE_SUBORDINATE
        } else if ( strcasecmp( p, "subordinate" ) == 0 ) {
                return LDAP_SCOPE_SUBORDINATE;
 
        } else if ( strcasecmp( p, "children" ) == 0 ) {
                return LDAP_SCOPE_SUBORDINATE;
-#endif
        }
 
        return( -1 );
@@ -509,9 +507,7 @@ desc2str_len( LDAPURLDesc *u )
        case LDAP_SCOPE_BASE:
        case LDAP_SCOPE_ONELEVEL:
        case LDAP_SCOPE_SUBTREE:
-#ifdef LDAP_SCOPE_SUBORDINATE
        case LDAP_SCOPE_SUBORDINATE:
-#endif
                switch ( u->lud_scope ) {
                case LDAP_SCOPE_BASE:
                        len += STRLENOF( "base" );
@@ -525,12 +521,9 @@ desc2str_len( LDAPURLDesc *u )
                        len += STRLENOF( "sub" );
                        break;
 
-#ifdef LDAP_SCOPE_SUBORDINATE
                case LDAP_SCOPE_SUBORDINATE:
                        len += STRLENOF( "subordinate" );
                        break;
-
-#endif
                }
 
                if ( !sep ) {
@@ -597,9 +590,7 @@ desc2str( LDAPURLDesc *u, char *s, int len )
        case LDAP_SCOPE_BASE:
        case LDAP_SCOPE_ONELEVEL:
        case LDAP_SCOPE_SUBTREE:
-#ifdef LDAP_SCOPE_SUBORDINATE
        case LDAP_SCOPE_SUBORDINATE:
-#endif
                gotscope = 1;
                break;
        }
@@ -690,13 +681,11 @@ desc2str( LDAPURLDesc *u, char *s, int len )
                len -= STRLENOF("sub");
                break;
 
-#ifdef LDAP_SCOPE_SUBORDINATE
        case LDAP_SCOPE_SUBORDINATE:
                strcpy( &s[sofar], "children" );
                sofar += STRLENOF("children");
                len -= STRLENOF("children");
                break;
-#endif
        }
 
        assert( len >= 0 );