From 48ffbcce3c9418d4a152114d6bea044af8592124 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 25 Jul 2009 00:06:46 +0000 Subject: [PATCH] Minor cleanup --- servers/slapd/overlays/sssvlv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.5