From d3aa0e7129caba51c6610f77097441bf53df6a4a Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Tue, 9 Mar 1999 06:27:36 +0000 Subject: [PATCH] Bugfix: Missing parens in `status = ldap_pvt_thread_create(...) != 0' --- servers/slapd/connection.c | 5 +++-- servers/slapd/main.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 249f1b82cb..1d772edcf2 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -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 ); } } diff --git a/servers/slapd/main.c b/servers/slapd/main.c index 16b3e2cf2b..f4ca8a58b0 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -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 ); -- 2.39.5