small improvement and prototyping

This commit is contained in:
Pierangelo Masarati 2001-12-27 15:15:30 +00:00
parent 1f8e4d3884
commit 70e7d58c7d
2 changed files with 7 additions and 3 deletions

View File

@ -819,7 +819,6 @@ rdn_attrs( const char * rdn, char ***types, char ***values)
int rc;
assert( rdn );
assert( types );
assert( values );
rc = ldap_str2rdn( rdn, &tmpRDN, &p, LDAP_DN_FORMAT_LDAP );
@ -834,8 +833,10 @@ rdn_attrs( const char * rdn, char ***types, char ***values)
assert( ava->la_attr );
assert( ava->la_value );
charray_add_n( types, ava->la_attr->bv_val,
ava->la_attr->bv_len );
if ( types ) {
charray_add_n( types, ava->la_attr->bv_val,
ava->la_attr->bv_len );
}
charray_add_n( values, ava->la_value->bv_val,
ava->la_value->bv_len );
}

View File

@ -373,6 +373,9 @@ LDAP_SLAPD_F (int) dnMatch LDAP_P((
LDAP_SLAPD_F (int) dnIsSuffix LDAP_P((
const struct berval *dn, const struct berval *suffix ));
LDAP_SLAPD_F (int) dnExtractRdn LDAP_P((
const char *dn, struct berval **rdn ));
LDAP_SLAPD_F (int) rdnValidate LDAP_P(( struct berval * rdn ));
#define SLAP_DN_MIGRATION