]> git.sur5r.net Git - openldap/commitdiff
clarify macro name: dn_match = 1 if match, 0 otherwise
authorPierangelo Masarati <ando@openldap.org>
Sat, 12 Jan 2002 17:42:44 +0000 (17:42 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 12 Jan 2002 17:42:44 +0000 (17:42 +0000)
servers/slapd/back-ldap/attribute.c
servers/slapd/proto-slap.h

index 0fec6c5e804c1f55596ba5dc16ac9b3ad8ff96c9..2bf718a61700f0b84fb8b8ac5f75365a45b11801 100644 (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)
index 5341fbbfae0be5fb350b95afd637e63a6e93945b..97750008ccd15740bdbab7ca56b8b0bd6f286a2e 100644 (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))