From: Howard Chu Date: Sat, 25 Jul 2009 00:06:46 +0000 (+0000) Subject: Minor cleanup X-Git-Tag: ACLCHECK_0~402 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=48ffbcce3c9418d4a152114d6bea044af8592124;p=openldap Minor cleanup --- diff --git a/servers/slapd/overlays/sssvlv.c b/servers/slapd/overlays/sssvlv.c index e7d3b853f2..4db21d3b3b 100644 --- a/servers/slapd/overlays/sssvlv.c +++ b/servers/slapd/overlays/sssvlv.c @@ -339,7 +339,7 @@ static void free_sort_op( Connection *conn, sort_op *so ) ch_free( so ); } -static int send_list( +static void send_list( Operation *op, SlapReply *rs, sort_op *so) @@ -1104,12 +1104,13 @@ static int sssvlv_db_open( { slap_overinst *on = (slap_overinst *)be->bd_info; sssvlv_info *si = on->on_bi.bi_private; + int rc; /* If not set, default to 1/2 of available threads */ if ( !si->svi_max ) si->svi_max = connection_pool_max / 2; - int rc = overlay_register_control( be, LDAP_CONTROL_SORTREQUEST ); + rc = overlay_register_control( be, LDAP_CONTROL_SORTREQUEST ); if ( rc == LDAP_SUCCESS ) rc = overlay_register_control( be, LDAP_CONTROL_VLVREQUEST ); return rc;