mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 19:19:35 -05:00
fix warnings after previous commit
This commit is contained in:
parent
0a94c35c14
commit
5a000a9b91
2 changed files with 3 additions and 11 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue