From: Pierangelo Masarati Date: Wed, 19 Aug 2009 12:55:15 +0000 (+0000) Subject: silence warnings X-Git-Tag: ACLCHECK_0~277 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8da69a9249d242fee6982339761b7acc2e015d66;p=openldap silence warnings --- diff --git a/servers/slapd/back-bdb/back-bdb.h b/servers/slapd/back-bdb/back-bdb.h index 1ea9f84f16..f24a67cc13 100644 --- a/servers/slapd/back-bdb/back-bdb.h +++ b/servers/slapd/back-bdb/back-bdb.h @@ -199,7 +199,7 @@ struct bdb_info { struct re_s *bi_txn_cp_task; struct re_s *bi_index_task; - int bi_lock_detect; + u_int32_t bi_lock_detect; long bi_shm_key; ID bi_lastid; diff --git a/servers/slapd/back-bdb/config.c b/servers/slapd/back-bdb/config.c index 1228cd6903..c634b45ce6 100644 --- a/servers/slapd/back-bdb/config.c +++ b/servers/slapd/back-bdb/config.c @@ -487,7 +487,7 @@ bdb_cf_gen( ConfigArgs *c ) if ( bdb->bi_lock_detect != DB_LOCK_DEFAULT ) { int i; for (i=0; !BER_BVISNULL(&bdb_lockd[i].word); i++) { - if ( bdb->bi_lock_detect == bdb_lockd[i].mask ) { + if ( bdb->bi_lock_detect == (u_int32_t)bdb_lockd[i].mask ) { value_add_one( &c->rvalue_vals, &bdb_lockd[i].word ); rc = 0; break; @@ -890,7 +890,7 @@ bdb_cf_gen( ConfigArgs *c ) c->log, c->argv[1] ); return 1; } - bdb->bi_lock_detect = rc; + bdb->bi_lock_detect = (u_int32_t)rc; break; case BDB_SSTACK: