From 9f269f22278ab1ccd1a3fd841e77db445e70c879 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 27 Dec 2002 17:24:20 +0000 Subject: [PATCH] cleanup --- servers/slapd/sets.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5