From: Pierangelo Masarati Date: Fri, 14 Jan 2005 12:01:51 +0000 (+0000) Subject: silence warnings X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~369 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=06478f22653d838eb7df0a249061aeb4588606a8;p=openldap silence warnings --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index ff15a67bab..8b5ca2077b 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -607,7 +607,7 @@ syncprov_findcsn( Operation *op, int mode ) AttributeAssertion eq; int i, rc = LDAP_SUCCESS; fpres_cookie pcookie; - sync_control *srs; + sync_control *srs = NULL; if ( mode != FIND_MAXCSN ) { srs = op->o_controls[slap_cids.sc_LDAPsync]; @@ -856,6 +856,8 @@ syncprov_drop_psearch( syncops *so, int lock ) ldap_pvt_thread_mutex_unlock( &so->s_op->o_conn->c_mutex ); } syncprov_free_syncop( so ); + + return 0; } static int @@ -1048,6 +1050,8 @@ syncprov_op_cleanup( Operation *op, SlapReply *rs ) op->o_tmpfree( opc->sdn.bv_val, op->o_tmpmemctx ); op->o_callback = cb->sc_next; op->o_tmpfree(cb, op->o_tmpmemctx); + + return 0; } static void