SLAPD_SCHEMA_NOT_COMPAT: Fix misuse of attrs_find

This commit is contained in:
Kurt Zeilenga 2000-05-24 18:00:30 +00:00
parent 2e0c16b56b
commit 522761dc17
3 changed files with 3 additions and 3 deletions

View file

@ -99,7 +99,7 @@ ldbm_back_compare(
#ifdef SLAPD_SCHEMA_NOT_COMPAT
for(a = attrs_find( e->e_attrs, ava->aa_desc );
a != NULL;
a = attrs_find( a, ava->aa_desc ))
a = attrs_find( a->a_next, ava->aa_desc ))
#else
if ((a = attr_find( e->e_attrs, ava->ava_type )) != NULL )
#endif

View file

@ -219,7 +219,7 @@ test_ava_filter(
#ifdef SLAPD_SCHEMA_NOT_COMPAT
for(a = attrs_find( e->e_attrs, ava->aa_desc );
a != NULL;
a = attrs_find( a, ava->aa_desc ) )
a = attrs_find( a->a_next, ava->aa_desc ) )
#else
a = attr_find( e->e_attrs, ava->ava_type );
if ( a != NULL )

View file

@ -127,7 +127,7 @@ main( int argc, char **argv )
#ifdef SLAPD_SCHEMA_NOT_COMPAT
for( attr = attrs_find( e->e_attrs, desc );
attr != NULL;
attr = attrs_find( attr, desc ) )
attr = attrs_find( attr->a_next, desc ) )
#else
if (( attr = attr_find( e->e_attrs, type )) != NULL )
#endif