From: Pierangelo Masarati Date: Sat, 12 Jan 2002 17:42:44 +0000 (+0000) Subject: clarify macro name: dn_match = 1 if match, 0 otherwise X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~170 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3bddc61a2a6dd16fbc7ebade87c0a65f303a97d9;p=openldap clarify macro name: dn_match = 1 if match, 0 otherwise --- diff --git a/servers/slapd/back-ldap/attribute.c b/servers/slapd/back-ldap/attribute.c index 0fec6c5e80..2bf718a617 100644 --- a/servers/slapd/back-ldap/attribute.c +++ b/servers/slapd/back-ldap/attribute.c @@ -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) diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h index 5341fbbfae..97750008cc 100644 --- a/servers/slapd/proto-slap.h +++ b/servers/slapd/proto-slap.h @@ -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))