From: Howard Chu Date: Thu, 8 Sep 2005 23:47:19 +0000 (+0000) Subject: ITS#4015 silence pointer/integer size warnings X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~457 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9944c9c4619a9e8bbe3974d0bb579c6a7ad40408;p=openldap ITS#4015 silence pointer/integer size warnings --- 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;