]> git.sur5r.net Git - openldap/commitdiff
silence warnings
authorPierangelo Masarati <ando@openldap.org>
Wed, 19 Aug 2009 12:55:15 +0000 (12:55 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 19 Aug 2009 12:55:15 +0000 (12:55 +0000)
servers/slapd/back-bdb/back-bdb.h
servers/slapd/back-bdb/config.c

index 1ea9f84f16597616fe18b241e4b41927fa3037a8..f24a67cc1331b8ac655b7501e51c8cd52a046553 100644 (file)
@@ -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;
index 1228cd69038cba7b07fde5df7a11a5f6141c3804..c634b45ce63aef4789c9c62973b1c28540b44c90 100644 (file)
@@ -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: