From: Hallvard Furuseth Date: Sat, 18 Oct 2008 07:21:27 +0000 (+0000) Subject: Warning cleanup: signed meets unsigned. X-Git-Tag: ACLCHECK_0~1228 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e0952945d0b6da70703a711c91306be07d31ea1a;p=openldap Warning cleanup: signed meets unsigned. --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index f50fb6d75a..47b4fe5c1c 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -3948,10 +3948,10 @@ check_name_index( CfEntryInfo *parent, ConfigType ce_type, Entry *e, isconfig = 1; } 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; 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; if ( ptr2-ptr1 == 1) return LDAP_NAMING_VIOLATION;