From: Pierangelo Masarati Date: Fri, 27 Dec 2002 17:24:20 +0000 (+0000) Subject: cleanup X-Git-Tag: NO_SLAP_OP_BLOCKS~633 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9f269f22278ab1ccd1a3fd841e77db445e70c879;p=openldap cleanup --- diff --git a/servers/slapd/sets.c b/servers/slapd/sets.c index 2a839cbf34..cd4a76c5fc 100644 --- a/servers/slapd/sets.c +++ b/servers/slapd/sets.c @@ -20,14 +20,14 @@ static int set_samedn (char *dn1, char *dn2); long slap_set_size (BerVarray set) { - int i; + long i; i = 0; if (set != NULL) { while (set[i].bv_val) i++; } - return(i); + return i; } void @@ -384,7 +384,7 @@ slap_set_filter (SLAP_SET_GATHER gatherer, SF_ERROR(syntax); } - rc = slap_set_size(set); + rc = slap_set_size(set) > 0 ? 1 : 0; if (results) { *results = set; set = NULL;