From: Pierangelo Masarati Date: Thu, 8 Sep 2011 23:08:05 +0000 (+0200) Subject: silence warning X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ca95d353a42eeccc23e64d0b20e4196e1cc2625e;p=openldap silence warning --- 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,