]> git.sur5r.net Git - openldap/commitdiff
cleanup: Rename rs_ensure_entry_modifiable().
authorQuanah Gibson-Mount <quanah@openldap.org>
Fri, 28 Jan 2011 19:53:36 +0000 (19:53 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 28 Jan 2011 19:53:36 +0000 (19:53 +0000)
The name rs_entry2modifiable() is more reasonably sized.
For now, leave behind a macro rs_ensure_entry_modifiable in proto-slap.h.

contrib/slapd-modules/cloak/cloak.c
contrib/slapd-modules/dupent/dupent.c
servers/slapd/overlays/collect.c
servers/slapd/overlays/syncprov.c
servers/slapd/overlays/valsort.c
servers/slapd/proto-slap.h
servers/slapd/result.c

index ae4bca63884e6d09ae4605004b577b5597e8fa77..fcb6a8025bae5a999964a19616a78d8b514a2450 100644 (file)
@@ -220,7 +220,7 @@ cloak_search_response_cb( Operation *op, SlapReply *rs )
        /*
         * We are now committed to cloak an attribute.
         */
-       rs_ensure_entry_modifiable( op, rs, (slap_overinst *) op->o_bd->bd_info );
+       rs_entry2modifiable( op, rs, (slap_overinst *) op->o_bd->bd_info );
        me = rs->sr_entry;
                
        for ( ci = (cloak_info_t *)sc->sc_private; ci; ci = ci->ci_next ) {
index 50ae0ed6d184f1e3e940fe107081e62cff638237..257b5cd3ae963aa058ef648cf43a1cc411f28dd3 100644 (file)
@@ -403,7 +403,7 @@ dupent_response_entry( Operation *op, SlapReply *rs )
                return SLAP_CB_CONTINUE;
        }
 
-       rs_ensure_entry_modifiable( op, rs, dc->dc_on );
+       rs_entry2modifiable( op, rs, dc->dc_on );
        rs->sr_flags &= ~(REP_ENTRY_MODIFIABLE | REP_ENTRY_MUSTBEFREED);
        e = rs->sr_entry;
 
index d484a4aff52ec6ee25598f7d76b26bcf735aff8d..2fc08ed4135d2d5c59502807bf36d998d245e061 100644 (file)
@@ -386,7 +386,7 @@ collect_response( Operation *op, SlapReply *rs )
                        * don't modify it directly. Make a copy and
                        * work with that instead.
                        */
-                       rs_ensure_entry_modifiable( op, rs, on );
+                       rs_entry2modifiable( op, rs, on );
 
                        /* Loop for each attribute in this collectinfo */
                        for(idx=0; idx<ci->ci_ad_num; idx++) {
index 8ca9f13cc38a19e294db28c3629e25b32bdc31d2..4bb4abdd57b8ff1318f2b442cead27657b6df8c1 100644 (file)
@@ -2762,7 +2762,7 @@ syncprov_operational(
                                }
 
                                if ( !ap ) {
-                                       if ( rs_ensure_entry_modifiable( op, rs, on )) {
+                                       if ( rs_entry2modifiable( op, rs, on )) {
                                                a = attr_find( rs->sr_entry->e_attrs,
                                                        slap_schema.si_ad_contextCSN );
                                        }
index a09e32bbf04bbe18e8c03088118e25bb142094d7..80d938238ce733b55cd129b70fbd3c3a8d9763b1 100644 (file)
@@ -297,7 +297,7 @@ valsort_response( Operation *op, SlapReply *rs )
                a = attr_find( rs->sr_entry->e_attrs, vi->vi_ad );
                if ( !a ) continue;
 
-               if ( rs_ensure_entry_modifiable( op, rs, on )) {
+               if ( rs_entry2modifiable( op, rs, on )) {
                        a = attr_find( rs->sr_entry->e_attrs, vi->vi_ad );
                }
 
index 6bf6afd902f8fd221fd6a538a9089181e887da36..6c0613062773e29ad627bd72e0e3f258badd7b82 100644 (file)
@@ -1562,8 +1562,9 @@ LDAP_SLAPD_F (void) rs_flush_entry LDAP_P(( Operation *op,
        SlapReply *rs, slap_overinst *on ));
 LDAP_SLAPD_F (void) rs_replace_entry LDAP_P(( Operation *op,
        SlapReply *rs, slap_overinst *on, Entry *e ));
-LDAP_SLAPD_F (int) rs_ensure_entry_modifiable LDAP_P(( Operation *op,
+LDAP_SLAPD_F (int) rs_entry2modifiable LDAP_P(( Operation *op,
        SlapReply *rs, slap_overinst *on ));
+#define rs_ensure_entry_modifiable rs_entry2modifiable /* older name */
 LDAP_SLAPD_F (void) slap_send_ldap_result LDAP_P(( Operation *op, SlapReply *rs ));
 LDAP_SLAPD_F (void) send_ldap_sasl LDAP_P(( Operation *op, SlapReply *rs ));
 LDAP_SLAPD_F (void) send_ldap_disconnect LDAP_P(( Operation *op, SlapReply *rs ));
index 4161a0d3b7c5edb971281503441493440137d82b..0803f7fb80ce42add0af8176db03d900fa712232 100644 (file)
@@ -268,7 +268,7 @@ rs_replace_entry( Operation *op, SlapReply *rs, slap_overinst *on, Entry *e )
  * Return nonzero if rs->sr_entry was replaced.
  */
 int
-rs_ensure_entry_modifiable( Operation *op, SlapReply *rs, slap_overinst *on )
+rs_entry2modifiable( Operation *op, SlapReply *rs, slap_overinst *on )
 {
        if ( rs->sr_flags & REP_ENTRY_MODIFIABLE ) {
                rs_assert_ok( rs );