From 9944c9c4619a9e8bbe3974d0bb579c6a7ad40408 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 8 Sep 2005 23:47:19 +0000 Subject: [PATCH] ITS#4015 silence pointer/integer size warnings --- servers/slapd/back-bdb/cache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index efd963a82f..d155ef7c2e 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -1357,7 +1357,7 @@ static void bdb_locker_id_free( void *key, void *data ) { DB_ENV *env = key; - u_int32_t lockid = (u_int32_t) data; + u_int32_t lockid = (long)data; int rc; rc = XLOCK_ID_FREE( env, lockid ); @@ -1405,7 +1405,7 @@ bdb_locker_id( Operation *op, DB_ENV *env, u_int32_t *locker ) if ( rc != 0) { return rc; } - data = (void *)lockid; + data = (void *)((long)lockid); if ( ( rc = ldap_pvt_thread_pool_setkey( ctx, env, data, bdb_locker_id_free ) ) ) { XLOCK_ID_FREE( env, lockid ); @@ -1415,7 +1415,7 @@ bdb_locker_id( Operation *op, DB_ENV *env, u_int32_t *locker ) return rc; } } else { - lockid = (u_int32_t) data; + lockid = (long)data; } *locker = lockid; return 0; -- 2.39.5