From 06478f22653d838eb7df0a249061aeb4588606a8 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 14 Jan 2005 12:01:51 +0000 Subject: [PATCH] silence warnings --- servers/slapd/overlays/syncprov.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5