]> git.sur5r.net Git - openldap/commitdiff
ITS#6573 export compare_entry as slap_compare_entry()
authorHoward Chu <hyc@openldap.org>
Thu, 23 Dec 2010 21:36:57 +0000 (21:36 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 23 Dec 2010 21:36:57 +0000 (21:36 +0000)
servers/slapd/compare.c
servers/slapd/proto-slap.h

index 0d64b735e205e88b2c62e593ad3ebc4207bbe3a4..0cc3181645d7ce7f22120f6e9b439f2657d94391 100644 (file)
 
 #include "slap.h"
 
-static int compare_entry(
-       Operation *op,
-       Entry *e,
-       AttributeAssertion *ava );
-
 int
 do_compare(
     Operation  *op,
@@ -176,7 +171,7 @@ fe_op_compare( Operation *op, SlapReply *rs )
        }
 
        if( entry ) {
-               rs->sr_err = compare_entry( op, entry, ava );
+               rs->sr_err = slap_compare_entry( op, entry, ava );
                entry_free( entry );
 
                send_ldap_result( op, rs );
@@ -352,7 +347,7 @@ cleanup:;
        return rs->sr_err;
 }
 
-static int compare_entry(
+int slap_compare_entry(
        Operation *op,
        Entry *e,
        AttributeAssertion *ava )
@@ -373,7 +368,7 @@ static int compare_entry(
                goto done;
        }
 
-       for(a = attrs_find( e->e_attrs, ava->aa_desc );
+       for(;
                a != NULL;
                a = attrs_find( a->a_next, ava->aa_desc ))
        {
index 138739aef7675ab807ae59890c9403b009000238..27e6d3945d6f18a1dc4211faa955ecbd73fe972a 100644 (file)
@@ -518,6 +518,15 @@ LDAP_SLAPD_F (void) ch_free LDAP_P(( void * ));
 #define free ch_free
 #endif
 
+/*
+ * compare.c
+ */
+
+LDAP_SLAPD_F (int) slap_compare_entry LDAP_P((
+       Operation *op,
+       Entry *e,
+       AttributeAssertion *ava ));
+
 /*
  * component.c
  */