Diff for /libraries/libldap/result.c between versions 1.139 and 1.140

version 1.139, 2006/12/03 19:56:26 version 1.140, 2006/12/03 23:11:12
Line 1 Line 1
 /* result.c - wait for an ldap result */  /* result.c - wait for an ldap result */
 /* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.138 2006/11/12 13:22:25 ando Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.139 2006/12/03 19:56:26 ando Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 1998-2006 The OpenLDAP Foundation.   * Copyright 1998-2006 The OpenLDAP Foundation.
Line 1322  ldap_abandoned( LDAP *ld, ber_int_t msgi Line 1322  ldap_abandoned( LDAP *ld, ber_int_t msgi
 static int  static int
 ldap_mark_abandoned( LDAP *ld, ber_int_t msgid, int idx )  ldap_mark_abandoned( LDAP *ld, ber_int_t msgid, int idx )
 {  {
         int             i;  
   
 #ifdef LDAP_R_COMPILE  #ifdef LDAP_R_COMPILE
         LDAP_PVT_THREAD_ASSERT_MUTEX_OWNER( &ld->ld_res_mutex );          LDAP_PVT_THREAD_ASSERT_MUTEX_OWNER( &ld->ld_res_mutex );
 #endif  #endif
Line 1333  ldap_mark_abandoned( LDAP *ld, ber_int_t Line 1331  ldap_mark_abandoned( LDAP *ld, ber_int_t
         assert( idx < ld->ld_nabandoned );          assert( idx < ld->ld_nabandoned );
         assert( ld->ld_abandoned[ idx ] == msgid );          assert( ld->ld_abandoned[ idx ] == msgid );
   
 #if 0          return lutil_bisect_delete( &ld->ld_abandoned, &ld->ld_nabandoned,
         fprintf( stderr, "--> ldap_mark_abandoned %p %p %d %d:\n", (void *)&i, (void *)ld, msgid, idx );                  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 );  
 }  }

Removed from v.1.139  
changed lines
  Added in v.1.140


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org