mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
ITS#4015 from HEAD silence pointer/integer size warnings
This commit is contained in:
parent
ad06d2f4aa
commit
bd7d3d977d
1 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue