From f8407435cc5d8c88551d8de129ba63a8d0911ed1 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 10 Aug 2005 10:25:24 +0000 Subject: [PATCH] cleanup --- servers/slapd/backend.c | 2 +- servers/slapd/modify.c | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index e100b60022..0a5934214c 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -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 ); diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index 7620c284a4..4025e40b37 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -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 */ -- 2.39.5