From ca95d353a42eeccc23e64d0b20e4196e1cc2625e Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 9 Sep 2011 01:08:05 +0200 Subject: [PATCH] silence warning --- servers/slapd/daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 46a07a6f51..277ae934ca 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -2129,7 +2129,7 @@ slapd_daemon_task( int l; time_t last_idle_check = 0; int ebadf = 0; - int tid = (int)ptr; + int tid = *(int *)ptr; #define SLAPD_IDLE_CHECK_LIMIT 4 @@ -2919,7 +2919,7 @@ slapd_daemon( void ) { /* listener as a separate THREAD */ rc = ldap_pvt_thread_create( &listener_tid[i], - 0, slapd_daemon_task, (void *)i ); + 0, slapd_daemon_task, (void *)&i ); if ( rc != 0 ) { Debug( LDAP_DEBUG_ANY, -- 2.39.5