]> git.sur5r.net Git - openldap/blobdiff - servers/slurpd/globals.c
replace integer argument NULL with 0
[openldap] / servers / slurpd / globals.c
index ba13dd20004554f775899b9911e1d81771cf5157..fed3bbf31dcc605ff75fb3c86834e4952f82ef18 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <ac/string.h>
 
 #include "slurp.h"
 #include "globals.h"
@@ -32,7 +33,8 @@ int ldap_debug = 0;
 /*
  * Initialize the globals
  */
-Globals *init_globals()
+Globals *
+init_globals( void )
 {
     Globals *g;
 
@@ -58,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 );