]> git.sur5r.net Git - openldap/blobdiff - clients/gopher/go500.c
s/<stdlib.h>/<ac/stdlib.h>/
[openldap] / clients / gopher / go500.c
index 1be51161c0dad271f24d83efe46cbc08c0d096a8..7b5141bbed4888792882f4de23fdc3e0f063c3e5 100644 (file)
@@ -13,7 +13,8 @@
 #include "portable.h"
 
 #include <stdio.h>
-#include <stdlib.h>
+
+#include <ac/stdlib.h>
 
 #include <ac/ctype.h>
 #include <ac/signal.h>
@@ -47,6 +48,8 @@
 
 int    debug;
 int    dosyslog;
+int ldap_syslog;
+int ldap_syslog_level;
 int    inetd;
 int    dtblsize;
 
@@ -169,7 +172,7 @@ main( int argc, char **argv )
                myname = strdup( myname + 1 );
 
        if ( debug ) {
-               lber_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, &debug);
+               ber_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, &debug);
                ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, &debug);
        }
 
@@ -254,7 +257,7 @@ main( int argc, char **argv )
 
                switch( pid = fork() ) {
                case 0:         /* child */
-                       close( s );
+                       tcp_close( s );
                        do_queries( ns );
                        break;
 
@@ -263,7 +266,7 @@ main( int argc, char **argv )
                        break;
 
                default:        /* parent */
-                       close( ns );
+                       tcp_close( ns );
                        if ( debug )
                                fprintf( stderr, "forked child %d\n", pid );
                        break;
@@ -365,7 +368,7 @@ do_queries( int s )
        if ( debug ) {
                fprintf( stderr, "got %d bytes\n", len );
 #ifdef LDAP_DEBUG
-               lber_bprint( buf, len );
+               ber_bprint( buf, len );
 #endif
        }