Commit 1c85cf3c authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Warning cleanup: signed meets unsigned. ber_flatten2() returns -1 on

error, not LBER_ERROR.
parent 6f39252b
......@@ -447,8 +447,7 @@ int
ldap_int_bisect_delete( ber_int_t **vp, ber_len_t *np, int id, int idx )
{
ber_int_t *v;
ber_len_t n;
int i;
ber_len_t i, n;
assert( vp != NULL );
assert( np != NULL );
......
......@@ -691,7 +691,7 @@ ldap_sync_init( ldap_sync_t *ls, int mode )
rc ? "!!! " : "",
rc );
#endif /* LDAP_SYNC_TRACE */
if ( rc == LBER_ERROR ) {
if ( rc < 0 ) {
rc = LDAP_OTHER;
goto done;
}
......
......@@ -1099,7 +1099,7 @@ ldap_chase_v3referrals( LDAP *ld, LDAPRequest *lr, char **refs, int sref, char *
/* See if we've already requested this DN with this conn */
LDAPRequest *lp;
int looped = 0;
int len = srv->lud_dn ? strlen( srv->lud_dn ) : 0;
ber_len_t len = srv->lud_dn ? strlen( srv->lud_dn ) : 0;
for ( lp = origreq; lp; ) {
if ( lp->lr_conn == lc
&& len == lp->lr_dn.bv_len
......@@ -1358,7 +1358,7 @@ ldap_chase_referrals( LDAP *ld,
if (( lc = find_connection( ld, srv, 1 )) != NULL ) {
LDAPRequest *lp;
int looped = 0;
int len = srv->lud_dn ? strlen( srv->lud_dn ) : 0;
ber_len_t len = srv->lud_dn ? strlen( srv->lud_dn ) : 0;
for ( lp = lr; lp; lp = lp->lr_parent ) {
if ( lp->lr_conn == lc
&& len == lp->lr_dn.bv_len )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment