Commit bd7d3d97 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#4015 from HEAD silence pointer/integer size warnings

parent ad06d2f4
......@@ -1273,7 +1273,7 @@ static void
bdb_locker_id_free( void *key, void *data )
{
DB_ENV *env = key;
int lockid = (int) data;
u_int32_t lockid = (long) data;
int rc;
rc = XLOCK_ID_FREE( env, lockid );
......@@ -1293,7 +1293,8 @@ bdb_locker_id_free( void *key, void *data )
int
bdb_locker_id( Operation *op, DB_ENV *env, int *locker )
{
int i, rc, lockid;
int i, rc;
u_int32_t lockid;
void *data;
void *ctx;
......@@ -1320,7 +1321,7 @@ bdb_locker_id( Operation *op, DB_ENV *env, int *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 );
......@@ -1330,7 +1331,7 @@ bdb_locker_id( Operation *op, DB_ENV *env, int *locker )
return rc;
}
} else {
lockid = (int)data;
lockid = (long)data;
}
*locker = lockid;
return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment