]> git.sur5r.net Git - openldap/blobdiff - servers/slurpd/globals.c
replace integer argument NULL with 0
[openldap] / servers / slurpd / globals.c
index 7e2c7081bf8b279b1066dd6d025d6c28578a3b20..fed3bbf31dcc605ff75fb3c86834e4952f82ef18 100644 (file)
@@ -17,6 +17,8 @@
 #include "portable.h"
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <ac/string.h>
 
 #include "slurp.h"
 #include "globals.h"
@@ -31,7 +33,8 @@ int ldap_debug = 0;
 /*
  * Initialize the globals
  */
-Globals *init_globals()
+Globals *
+init_globals( void )
 {
     Globals *g;
 
@@ -57,7 +60,7 @@ Globals *init_globals()
        fprintf( stderr, "Cannot initialize status data\n" );
        exit( 1 );
     }
-    pthread_mutex_init( &(g->rej_mutex), pthread_mutexattr_default );
+    ldap_pvt_thread_mutex_init( &(g->rej_mutex) );
     if ( Rq_init( &(g->rq)) < 0 ) {
        fprintf( stderr, "Cannot initialize queue\n" );
        exit( 1 );