]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/search.c
Wrap strtok use with mutex.
[openldap] / servers / slapd / search.c
index 0cadfed276af5f34d79395e20bce7377ce342217..013075fdb183462f87e04d2e54ac2e7ed9179343 100644 (file)
  * is provided ``as is'' without express or implied warranty.
  */
 
+#include "portable.h"
+
 #include <stdio.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include "slap.h"
-#include "ldapconfig.h"
 
-extern int     get_filter();
-extern Backend *select_backend();
-extern char    *suffixAlias();
+#include <ac/string.h>
+#include <ac/socket.h>
+
+#include "ldapconfig.h"
+#include "slap.h"
 
-extern char    *default_referral;
 
 void
-do_search( conn, op )
-    Connection *conn;  /* where to send results                       */
-    Operation  *op;    /* info about the op to which we're responding */
+do_search(
+    Connection *conn,  /* where to send results                       */
+    Operation  *op     /* info about the op to which we're responding */
+)
 {
        int             i, err;
        int             scope, deref, attrsonly;