]> git.sur5r.net Git - openldap/blobdiff - servers/slurpd/sanity.c
Backend lock wasn't being released properly.
[openldap] / servers / slurpd / sanity.c
index 04be7db86af87d728e9f03c83735cd62d3587613..d666f65da0802bd69a6a834b2ccf9488e0141ac0 100644 (file)
  * feedback to the users.
  */
 
+#include "portable.h"
+
 #include <stdio.h>
-#include <unistd.h>
-#include <string.h>
+
+#include <ac/unistd.h>
+#include <ac/string.h>
 
 #include "slurp.h"
 #include "globals.h"
-#include "portable.h"
 
 #define FC_DIRBAD      1
 #define FC_DIRUNREAD   2
 /*
  * Forward declarations
  */
-#ifdef NEEDPROTOS
-static unsigned int filecheck( char * );
-#else /* NEEDPROTOS */
-static unsigned int filecheck();
-#endif /* NEEDPROTOS */
+static unsigned int filecheck LDAP_P(( char * ));
 
 
 
@@ -58,7 +56,7 @@ static unsigned int filecheck();
  */
 
 int
-sanity()
+sanity( void )
 {
     int        err = 0;
     int rc;
@@ -201,4 +199,3 @@ filecheck(
 
     return ret;
 }
-