Warning cleanup: signed meets unsigned.

This commit is contained in:
Hallvard Furuseth 2008-10-18 07:21:27 +00:00
parent 0e4ff5f497
commit e0952945d0

View File

@ -3948,10 +3948,10 @@ check_name_index( CfEntryInfo *parent, ConfigType ce_type, Entry *e,
isconfig = 1; isconfig = 1;
} }
ptr1 = ber_bvchr( &e->e_name, '{' ); ptr1 = ber_bvchr( &e->e_name, '{' );
if ( ptr1 && ptr1 - e->e_name.bv_val < rdn.bv_len ) { if ( ptr1 && ptr1 < &e->e_name.bv_val[ rdn.bv_len ] ) {
char *next; char *next;
ptr2 = strchr( ptr1, '}' ); ptr2 = strchr( ptr1, '}' );
if (!ptr2 || ptr2 - e->e_name.bv_val > rdn.bv_len) if ( !ptr2 || ptr2 > &e->e_name.bv_val[ rdn.bv_len ] )
return LDAP_NAMING_VIOLATION; return LDAP_NAMING_VIOLATION;
if ( ptr2-ptr1 == 1) if ( ptr2-ptr1 == 1)
return LDAP_NAMING_VIOLATION; return LDAP_NAMING_VIOLATION;