printf %p expects void*

This commit is contained in:
Hallvard Furuseth 2007-04-04 17:49:31 +00:00
parent e4a87ee27c
commit 8e5beab1e8

View File

@ -1328,11 +1328,11 @@ bdb_lru_print( Cache *cache )
{ {
EntryInfo *e; 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" ); fprintf( stderr, "LRU circle (tail forward):\n" );
for ( e = cache->c_lrutail; ; ) { for ( e = cache->c_lrutail; ; ) {
fprintf( stderr, "\t%p, %p id %ld rdn \"%s\"\n", 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; e = e->bei_lrunext;
if ( e == cache->c_lrutail ) if ( e == cache->c_lrutail )
break; break;
@ -1340,7 +1340,7 @@ bdb_lru_print( Cache *cache )
fprintf( stderr, "LRU circle (tail backward):\n" ); fprintf( stderr, "LRU circle (tail backward):\n" );
for ( e = cache->c_lrutail; ; ) { for ( e = cache->c_lrutail; ; ) {
fprintf( stderr, "\t%p, %p id %ld rdn \"%s\"\n", 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; e = e->bei_lruprev;
if ( e == cache->c_lrutail ) if ( e == cache->c_lrutail )
break; break;