mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
printf %p expects void*
This commit is contained in:
parent
e4a87ee27c
commit
8e5beab1e8
@ -1328,11 +1328,11 @@ bdb_lru_print( Cache *cache )
|
||||
{
|
||||
EntryInfo *e;
|
||||
|
||||
fprintf( stderr, "LRU circle head: %p\n", cache->c_lruhead );
|
||||
fprintf( stderr, "LRU circle head: %p\n", (void *) cache->c_lruhead );
|
||||
fprintf( stderr, "LRU circle (tail forward):\n" );
|
||||
for ( e = cache->c_lrutail; ; ) {
|
||||
fprintf( stderr, "\t%p, %p id %ld rdn \"%s\"\n",
|
||||
e, e->bei_e, e->bei_id, e->bei_nrdn.bv_val );
|
||||
(void *) e, (void *) e->bei_e, e->bei_id, e->bei_nrdn.bv_val );
|
||||
e = e->bei_lrunext;
|
||||
if ( e == cache->c_lrutail )
|
||||
break;
|
||||
@ -1340,7 +1340,7 @@ bdb_lru_print( Cache *cache )
|
||||
fprintf( stderr, "LRU circle (tail backward):\n" );
|
||||
for ( e = cache->c_lrutail; ; ) {
|
||||
fprintf( stderr, "\t%p, %p id %ld rdn \"%s\"\n",
|
||||
e, e->bei_e, e->bei_id, e->bei_nrdn.bv_val );
|
||||
(void *) e, (void *) e->bei_e, e->bei_id, e->bei_nrdn.bv_val );
|
||||
e = e->bei_lruprev;
|
||||
if ( e == cache->c_lrutail )
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user