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 ) {
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' )
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;