From: Kurt Zeilenga Date: Mon, 31 May 1999 05:27:32 +0000 (+0000) Subject: Remove dependency upon lber-int.h by using ber_set_option(). X-Git-Tag: OPENLDAP_REL_ENG_2_BP~468 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c72cb0c8feca8d0aea61b0bbde15ef2579bdae4c;p=openldap Remove dependency upon lber-int.h by using ber_set_option(). --- diff --git a/libraries/liblber/dtest.c b/libraries/liblber/dtest.c index f76331f8dc..3422873892 100644 --- a/libraries/liblber/dtest.c +++ b/libraries/liblber/dtest.c @@ -28,7 +28,7 @@ #include #endif /* MACOS */ -#include "lber-int.h" +#include 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] ); diff --git a/libraries/liblber/etest.c b/libraries/liblber/etest.c index 0099e82ff5..cb532f4402 100644 --- a/libraries/liblber/etest.c +++ b/libraries/liblber/etest.c @@ -21,7 +21,7 @@ #include #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] );