From: Pierangelo Masarati Date: Mon, 4 Dec 2006 00:11:12 +0000 (+0000) Subject: fix warnings after previous commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~416 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a000a9b91c57bfad395e1cc1e367be97856725b;p=thirdparty%2Fopenldap.git fix warnings after previous commit --- diff --git a/libraries/libldap/request.c b/libraries/libldap/request.c index 177a78c78b..67df3adf7f 100644 --- a/libraries/libldap/request.c +++ b/libraries/libldap/request.c @@ -716,7 +716,7 @@ ldap_dump_requests_and_responses( LDAP *ld ) Debug( LDAP_DEBUG_TRACE, " outstanding referrals %d, parent count %d\n", lr->lr_outrefcnt, lr->lr_parentcnt, 0 ); } - Debug( LDAP_DEBUG_TRACE, " ld %p request count %d (abandoned %d)\n", + Debug( LDAP_DEBUG_TRACE, " ld %p request count %d (abandoned %lu)\n", (void *)ld, i, ld->ld_nabandoned ); Debug( LDAP_DEBUG_TRACE, "** ld %p Response Queue:\n", (void *)ld, 0, 0 ); if ( ( lm = ld->ld_responses ) == NULL ) { diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index 380d37e213..03bd73601d 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -1322,8 +1322,6 @@ ldap_abandoned( LDAP *ld, ber_int_t msgid, int *idxp ) static int ldap_mark_abandoned( LDAP *ld, ber_int_t msgid, int idx ) { - int i; - #ifdef LDAP_R_COMPILE LDAP_PVT_THREAD_ASSERT_MUTEX_OWNER( &ld->ld_res_mutex ); #endif @@ -1333,12 +1331,6 @@ ldap_mark_abandoned( LDAP *ld, ber_int_t msgid, int idx ) assert( idx < ld->ld_nabandoned ); assert( ld->ld_abandoned[ idx ] == msgid ); -#if 0 - fprintf( stderr, "--> ldap_mark_abandoned %p %p %d %d:\n", (void *)&i, (void *)ld, msgid, idx ); - for ( i = 0; i < ld->ld_nabandoned; i++ ) { - fprintf( stderr, "\t%p %p %d\n", (void *)&i, (void *)ld, ld->ld_abandoned[ i ] ); - } -#endif - - return lutil_bisect_delete( &ld->ld_abandoned, &ld->ld_nabandoned, msgid, idx ); + return lutil_bisect_delete( &ld->ld_abandoned, &ld->ld_nabandoned, + msgid, idx ); }