clarify macro name: dn_match = 1 if match, 0 otherwise

This commit is contained in:
Pierangelo Masarati 2002-01-12 17:42:44 +00:00
parent e89d7b1280
commit 3bddc61a2a
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ ldap_back_attribute(
LDAP *ld = NULL;
*vals = NULL;
if (target != NULL && dn_cmp( &target->e_nname, ndn )) {
if (target != NULL && dn_match( &target->e_nname, ndn )) {
/* we already have a copy of the entry */
/* attribute and objectclass mapping has already been done */
if ((attr = attr_find(target->e_attrs, entry_at)) == NULL)

View File

@ -352,7 +352,7 @@ LDAP_SLAPD_F (void) connection_internal_close( Connection *conn );
* dn.c
*/
#define dn_cmp(dn1, dn2) \
#define dn_match(dn1, dn2) \
(((dn1)->bv_len == (dn2)->bv_len) \
&& (strcmp((dn1)->bv_val, (dn2)->bv_val) == 0))