]> git.sur5r.net Git - openldap/commitdiff
Remove dependency upon lber-int.h by using ber_set_option().
authorKurt Zeilenga <kurt@openldap.org>
Mon, 31 May 1999 05:27:32 +0000 (05:27 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 31 May 1999 05:27:32 +0000 (05:27 +0000)
libraries/liblber/dtest.c
libraries/liblber/etest.c

index f76331f8dc56e5f9094919ce6eacfa9330e8415a..3422873892aac41770776186e2feaa17afd9d853 100644 (file)
@@ -28,7 +28,7 @@
 #include <console.h>
 #endif /* MACOS */
 
-#include "lber-int.h"
+#include <lber.h>
 
 static void usage( char *name )
 {
@@ -47,7 +47,8 @@ main( int argc, char **argv )
        Sockbuf         *sb;
 
        /* enable debugging */
-       ber_int_debug = -1;
+       int ival = -1;
+       ber_set_option( NULL, LBER_OPT_DEBUG_LEVEL, &ival );
 
        if ( argc < 2 ) {
                usage( argv[0] );
index 0099e82ff52638869eb77709a7c57d2f2432cb73..cb532f440255b786187962698d68962f189ddb2f 100644 (file)
@@ -21,7 +21,7 @@
 #include <console.h>
 #endif /* HAVE_CONSOLE_H */
 
-#include "lber-int.h"
+#include "lber.h"
 
 static void usage( char *name )
 {
@@ -51,7 +51,8 @@ main( int argc, char **argv )
        Sockbuf         *sb;
 
        /* enable debugging */
-       ber_int_debug = -1;
+       int ival = -1;
+       ber_set_option( NULL, LBER_OPT_DEBUG_LEVEL, &ival );
 
        if ( argc < 2 ) {
                usage( argv[0] );