From: Hallvard Furuseth Date: Thu, 22 May 2003 22:00:54 +0000 (+0000) Subject: Printf %p expects a void pointer. X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~75 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6362a51fe8c4c82c2f78b287d2038a194a2535ea;p=openldap Printf %p expects a void pointer. Other pointers may have different representation. --- diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index ac106fbd09..015660a7d6 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -351,10 +351,10 @@ ldap_back_getconn(Operation *op, SlapReply *rs) #ifdef NEW_LOGGING LDAP_LOG( BACK_LDAP, INFO, - "ldap_back_getconn: conn %p inserted\n", lc, 0, 0); + "ldap_back_getconn: conn %p inserted\n", (void *) lc, 0, 0); #else /* !NEW_LOGGING */ Debug( LDAP_DEBUG_TRACE, - "=>ldap_back_getconn: conn %p inserted\n", lc, 0, 0 ); + "=>ldap_back_getconn: conn %p inserted\n", (void *) lc, 0, 0 ); #endif /* !NEW_LOGGING */ /* Err could be -1 in case a duplicate ldapconn is inserted */ @@ -370,10 +370,10 @@ ldap_back_getconn(Operation *op, SlapReply *rs) #ifdef NEW_LOGGING LDAP_LOG( BACK_LDAP, INFO, "ldap_back_getconn: conn %p fetched\n", - lc, 0, 0 ); + (void *) lc, 0, 0 ); #else /* !NEW_LOGGING */ Debug( LDAP_DEBUG_TRACE, - "=>ldap_back_getconn: conn %p fetched\n", lc, 0, 0 ); + "=>ldap_back_getconn: conn %p fetched\n", (void *) lc, 0, 0 ); #endif /* !NEW_LOGGING */ }