]> git.sur5r.net Git - openldap/commitdiff
minor cleanup
authorQuanah Gibson-Mount <quanah@openldap.org>
Sun, 12 Dec 2010 02:35:34 +0000 (02:35 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Sun, 12 Dec 2010 02:35:34 +0000 (02:35 +0000)
servers/slapd/back-meta/search.c

index 068589d1ae4f68a78fb228070c3997983ce9783b..38271b86752063dbc552b626008905aa6b0956d1 100644 (file)
@@ -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];