active_threads++;
ldap_pvt_thread_mutex_unlock( &active_threads_mutex );
- if ( status = ldap_pvt_thread_create( &arg->co_op->o_tid, 1,
- connection_operation, (void *) arg ) != 0 ) {
+ status = ldap_pvt_thread_create( &arg->co_op->o_tid, 1,
+ connection_operation, (void *) arg );
+ if ( status != 0 ) {
Debug( LDAP_DEBUG_ANY, "ldap_pvt_thread_create failed (%d)\n", status, 0, 0 );
}
}
time( &starttime );
- if ( status = ldap_pvt_thread_create( &listener_tid, 0,
- slapd_daemon, (void *) port ) != 0 )
+ status = ldap_pvt_thread_create( &listener_tid, 0,
+ slapd_daemon, (void *) port );
+ if ( status != 0 )
{
Debug( LDAP_DEBUG_ANY,
"listener ldap_pvt_thread_create failed (%d)\n", status, 0, 0 );