From: Hallvard Furuseth Date: Mon, 13 Oct 2008 08:19:13 +0000 (+0000) Subject: Warning cleanup: signed meets unsigned. X-Git-Tag: ACLCHECK_0~1261 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=182c2931c4a7658a63ae08332dae916ec745086f;p=openldap Warning cleanup: signed meets unsigned. --- diff --git a/servers/slapd/slapi/slapi_pblock.c b/servers/slapd/slapi/slapi_pblock.c index 1a5d6584ba..0bbd91f406 100644 --- a/servers/slapd/slapi/slapi_pblock.c +++ b/servers/slapd/slapi/slapi_pblock.c @@ -396,7 +396,7 @@ static int pblock_set_default( Slapi_PBlock *pb, int param, void *value ) { slapi_pblock_class_t pbClass; - size_t i; + int i; pbClass = pblock_get_param_class( param ); if ( pbClass == PBLOCK_CLASS_INVALID ) { diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index 8c9910b162..06768345c3 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -52,7 +52,7 @@ struct slapi_condvar { static int checkBVString(const struct berval *bv) { - int i; + ber_len_t i; for ( i = 0; i < bv->bv_len; i++ ) { if ( bv->bv_val[i] == '\0' ) @@ -3231,7 +3231,7 @@ LDAP *slapi_ldap_init( char *ldaphost, int ldapport, int secure, int shared ) rc = snprintf( url, size, "ldap%s://%s/", ( secure ? "s" : "" ), ldaphost ); } - if ( rc > 0 && rc < size ) { + if ( rc > 0 && (size_t) rc < size ) { rc = ldap_initialize( &ld, url ); } else { ld = NULL;