]> git.sur5r.net Git - openldap/commitdiff
minor cleanup
authorPierangelo Masarati <ando@openldap.org>
Thu, 9 Sep 2010 00:56:22 +0000 (00:56 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 9 Sep 2010 00:56:22 +0000 (00:56 +0000)
servers/slapd/back-meta/search.c

index 2afc0083b0486394908bb45530e805294e6e6402..03b623caad772701c259c36f5fc7c78839fce228 100644 (file)
@@ -1848,7 +1848,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 ) {
@@ -2214,7 +2213,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];