Bugfix: Missing parens in `status = ldap_pvt_thread_create(...) != 0'

This commit is contained in:
Hallvard Furuseth 1999-03-09 06:27:36 +00:00
parent 95f6547963
commit d3aa0e7129
2 changed files with 6 additions and 4 deletions

View file

@ -202,8 +202,9 @@ connection_activity(
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 );
}
}

View file

@ -220,8 +220,9 @@ main( int argc, char **argv )
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 );