From: Howard Chu Date: Tue, 11 Oct 2005 02:16:09 +0000 (+0000) Subject: Remove lint X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~294 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=44e920962914bb3ca73ace6b1f222f399497f97d;p=openldap Remove lint --- diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index 88500027f8..6ef157277e 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -679,7 +679,7 @@ static Entry *accesslog_entry( Operation *op, int logop ) { op->o_tmpmemctx ); strcpy( nrdn.bv_val + STRLENOF(RDNEQ), ntimestamp.bv_val ); - nrdn.bv_len += ntimestamp.bv_len; + nrdn.bv_len = STRLENOF(RDNEQ)+ntimestamp.bv_len; build_new_dn( &e->e_name, li->li_db->be_suffix, &rdn, NULL ); build_new_dn( &e->e_nname, li->li_db->be_nsuffix, &nrdn, NULL ); diff --git a/servers/slapd/overlays/unique.c b/servers/slapd/overlays/unique.c index f80a1c35fe..d1df4dbb3e 100644 --- a/servers/slapd/overlays/unique.c +++ b/servers/slapd/overlays/unique.c @@ -490,7 +490,7 @@ static int unique_modrdn( op->o_req_dn.bv_val, op->orr_newrdn.bv_val, 0); if ( !dnIsSuffix( &op->o_req_ndn, &ud->dn ) && - (!op->orr_nnewSup || !dnIsSuffix( &op->orr_nnewSup, &ud->dn ))) + (!op->orr_nnewSup || !dnIsSuffix( op->orr_nnewSup, &ud->dn ))) return SLAP_CB_CONTINUE; if(ldap_bv2rdn_x(&op->oq_modrdn.rs_newrdn, &newrdn,