]> git.sur5r.net Git - openldap/commitdiff
Warning cleanup: signed meets unsigned, remove assert(unsigned >= 0).
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 17 Oct 2008 23:24:48 +0000 (23:24 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 17 Oct 2008 23:24:48 +0000 (23:24 +0000)
libraries/libldap/abandon.c
libraries/libldap/result.c

index bd9ebb38181a3e0907d90c6d11de6b9bce924725..3983a8e12314755c21c3b8a8d6182456b1f7b96f 100644 (file)
@@ -412,7 +412,7 @@ ldap_int_bisect_insert( ber_int_t **vp, ber_len_t *np, int id, int idx )
        assert( np != NULL );
        assert( *np >= 0 );
        assert( idx >= 0 );
-       assert( idx <= *np );
+       assert( (unsigned) idx <= *np );
 
        n = *np;
 
@@ -453,7 +453,7 @@ ldap_int_bisect_delete( ber_int_t **vp, ber_len_t *np, int id, int idx )
        assert( np != NULL );
        assert( *np >= 0 );
        assert( idx >= 0 );
-       assert( idx < *np );
+       assert( (unsigned) idx < *np );
 
        v = *vp;
 
index 07c3f5be7c489d93bb88b160a8b75c693ee784e9..fccee3d14cf1039a6a59b4d1777c91fa75865994 100644 (file)
@@ -1435,7 +1435,7 @@ ldap_mark_abandoned( LDAP *ld, ber_int_t msgid, int idx )
 
        /* NOTE: those assertions are repeated in ldap_int_bisect_delete() */
        assert( idx >= 0 );
-       assert( idx < ld->ld_nabandoned );
+       assert( (unsigned) idx < ld->ld_nabandoned );
        assert( ld->ld_abandoned[ idx ] == msgid );
 
        return ldap_int_bisect_delete( &ld->ld_abandoned, &ld->ld_nabandoned,