]> git.sur5r.net Git - openldap/blobdiff - tests/progs/slapd-search.c
Add cn=monitor, cn=config, cn=schema to namingContexts.
[openldap] / tests / progs / slapd-search.c
index 4b82c6d6b12bcf940526e68fffba7816fad9b3bd..1799f639be7b9e16706f22e73a919934a94b6af1 100644 (file)
@@ -1,15 +1,18 @@
 #include "portable.h"
 
 #include <stdio.h>
-#include <stdlib.h>
 
-#include <ac/string.h>
+#include <ac/stdlib.h>
+
 #include <ac/ctype.h>
 #include <ac/socket.h>
+#include <ac/string.h>
 #include <ac/unistd.h>
 #include <ac/wait.h>
 
+#ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
+#endif
 
 #include "lber.h"
 #include "ldap.h"
@@ -30,7 +33,7 @@ usage( char *name )
 int
 main( int argc, char **argv )
 {
-       int             i, j;
+       int             i;
        char        *host = "localhost";
        int                     port = -1;
        char        *sbase = NULL;