From 8e5beab1e8e6bd4925e1e8c5189c8ba06dd1be6e Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 4 Apr 2007 17:49:31 +0000 Subject: [PATCH] printf %p expects void* --- servers/slapd/back-bdb/cache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index 7f93b3bad1..3a4618a041 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -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;