Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ingo Voss
OpenLDAP
Commits
bd7d3d97
Commit
bd7d3d97
authored
Sep 28, 2005
by
Howard Chu
Browse files
ITS#4015 from HEAD silence pointer/integer size warnings
parent
ad06d2f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-bdb/cache.c
View file @
bd7d3d97
...
...
@@ -1273,7 +1273,7 @@ static void
bdb_locker_id_free
(
void
*
key
,
void
*
data
)
{
DB_ENV
*
env
=
key
;
in
t
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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment