#include <stdio.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"
int
main( int argc, char **argv )
{
- int i, j;
+ int i;
char *host = "localhost";
int port = -1;
char *sbase = NULL;
fprintf( stderr, "PID=%ld - Search(%d): base=\"%s\", filter=\"%s\".\n",
- pid, maxloop, sbase, filter );
+ (long) pid, maxloop, sbase, filter );
for ( i = 0; i < maxloop; i++ ) {
LDAPMessage *res;
ldap_msgfree( res );
}
- fprintf( stderr, " PID=%ld - Search done.\n", pid );
+ fprintf( stderr, " PID=%ld - Search done.\n", (long) pid );
ldap_unbind( ld );
}