]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorPierangelo Masarati <ando@openldap.org>
Wed, 10 Aug 2005 10:25:24 +0000 (10:25 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 10 Aug 2005 10:25:24 +0000 (10:25 +0000)
servers/slapd/backend.c
servers/slapd/modify.c

index e100b600222133a7018f6f7a8009fbef497a9e9c..0a5934214c3eb656833c3939e7a18a7f8d58fc90 100644 (file)
@@ -196,7 +196,7 @@ int backend_startup_one(Backend *be)
        assert( be != NULL );
 
        be->be_pending_csn_list = (struct be_pcl *)
-               ch_calloc( 1, sizeof( struct be_pcl ));
+               ch_calloc( 1, sizeof( struct be_pcl ) );
 
        LDAP_TAILQ_INIT( be->be_pending_csn_list );
 
index 7620c284a49dd09edd0bf215a06241eb8e8cd179..4025e40b37a4d8742ed943e0b03f981483600e2a 100644 (file)
@@ -344,13 +344,11 @@ fe_op_modify( Operation *op, SlapReply *rs )
                goto cleanup;
        }
 
-       {
-               rs->sr_err = slap_mods_obsolete_check( op, modlist,
-                       &rs->sr_text, textbuf, textlen );
-               if ( rs->sr_err != LDAP_SUCCESS ) {
-                       send_ldap_result( op, rs );
-                       goto cleanup;
-               }
+       rs->sr_err = slap_mods_obsolete_check( op, modlist,
+               &rs->sr_text, textbuf, textlen );
+       if ( rs->sr_err != LDAP_SUCCESS ) {
+               send_ldap_result( op, rs );
+               goto cleanup;
        }
 
        /* check for modify/increment support */