From: Pierangelo Masarati Date: Sun, 22 Nov 2009 14:58:18 +0000 (+0000) Subject: silence signedness warnings X-Git-Tag: ACLCHECK_0~66 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=78a6a1661569fe15c71314bd92cad8ba25404c5b;p=openldap silence signedness warnings --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index ad4bec98e5..66884926c0 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -303,8 +303,8 @@ int config_check_vals(ConfigTable *Conf, ConfigArgs *c, int check_only ) { break; } j = (arg_type & ARG_NONZERO) ? 1 : 0; - if(iarg < j && larg < j && barg < j ) { - larg = larg ? larg : (barg ? barg : iarg); + if(iarg < j && larg < j && barg < (unsigned)j ) { + larg = larg ? larg : (barg ? (long)barg : iarg); snprintf( c->cr_msg, sizeof( c->cr_msg ), "<%s> invalid value", c->argv[0] ); Debug(LDAP_DEBUG_ANY|LDAP_DEBUG_NONE, "%s: %s\n", @@ -779,7 +779,7 @@ read_config_file(const char *fname, int depth, ConfigArgs *cf, ConfigTable *cft) rc = 1; goto done; - } else if ( rc == ARG_BAD_CONF ) { + } else if ( (unsigned long)rc == ARG_BAD_CONF ) { rc = 1; goto done; } @@ -1482,7 +1482,7 @@ slap_cf_aux_table_unparse( void *src, struct berval *bv, slap_cf_aux_table *tab0 slap_verbmasks *aux = (slap_verbmasks *)tab->aux; for ( i = 0; !BER_BVISNULL( &aux[i].word ); i++ ) { - if ( *iptr == aux[i].mask ) { + if ( (slap_mask_t)*iptr == aux[i].mask ) { *ptr++ = ' '; ptr = lutil_strcopy( ptr, tab->key.bv_val ); ptr = lutil_strcopy( ptr, aux[i].word.bv_val ); @@ -1576,7 +1576,7 @@ slap_tls_get_config( LDAP *ld, int opt, char **val ) } ldap_pvt_tls_get_option( ld, opt, &ival ); for (i=0; !BER_BVISNULL(&keys[i].word); i++) { - if (keys[i].mask == ival) { + if (keys[i].mask == (slap_mask_t)ival) { *val = ch_strdup( keys[i].word.bv_val ); return 0; }