From 182c2931c4a7658a63ae08332dae916ec745086f Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 13 Oct 2008 08:19:13 +0000 Subject: [PATCH] Warning cleanup: signed meets unsigned. --- servers/slapd/slapi/slapi_pblock.c | 2 +- servers/slapd/slapi/slapi_utils.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5