From: Hallvard Furuseth Date: Wed, 4 Apr 2007 17:49:31 +0000 (+0000) Subject: printf %p expects void* X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~559 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8e5beab1e8e6bd4925e1e8c5189c8ba06dd1be6e;p=openldap printf %p expects void* --- 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;