]> git.sur5r.net Git - openldap/blobdiff - clients/gopher/go500gw.c
s/<stdlib.h>/<ac/stdlib.h>/
[openldap] / clients / gopher / go500gw.c
index e03bd4b4f821fd3559ecbc940e44857197d31e8e..9381acda5bd208da291e2d12edad3956118304cd 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>
@@ -48,6 +49,8 @@
 #include "ldapconfig.h"
 
 int    debug;
+int ldap_syslog;
+int ldap_syslog_level;
 int    dosyslog;
 int    inetd;
 int    dtblsize;
@@ -193,7 +196,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);
        }
        
@@ -394,7 +397,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
        }