From 5460bbf0bc4eecc3905a333a721999e2d5b1da9e Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Sun, 12 Dec 2010 02:35:34 +0000 Subject: [PATCH] minor cleanup --- servers/slapd/back-meta/search.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/servers/slapd/back-meta/search.c b/servers/slapd/back-meta/search.c index 068589d1ae..38271b8675 100644 --- a/servers/slapd/back-meta/search.c +++ b/servers/slapd/back-meta/search.c @@ -1838,7 +1838,6 @@ meta_send_entry( const char *text; dncookie dc; ber_len_t len; - ber_tag_t tag; int rc; if ( ber_scanf( &ber, "l{", &len ) == LBER_ERROR ) { @@ -2204,7 +2203,7 @@ next_attr:; LBER_FREE( attr->a_nvals[i].bv_val ); LBER_FREE( attr->a_vals[i].bv_val ); attr->a_numvals--; - if ( i < attr->a_numvals ) { + if ( (unsigned)i < attr->a_numvals ) { attr->a_vals[i] = attr->a_vals[attr->a_numvals]; if ( attr->a_nvals != attr->a_vals ) attr->a_nvals[i] = attr->a_nvals[attr->a_numvals]; -- 2.39.5