From: Hallvard Furuseth Date: Sun, 1 Aug 1999 20:22:26 +0000 (+0000) Subject: Use ber_set_option() instead of setting lber_debug X-Git-Tag: TWEB_OL_BASE~346 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=894b74d730b26a6fdfc3a92f8c998dc9da059f16;p=openldap Use ber_set_option() instead of setting lber_debug --- diff --git a/libraries/libldap/test.c b/libraries/libldap/test.c index dc52cd1f6b..650ad2128d 100644 --- a/libraries/libldap/test.c +++ b/libraries/libldap/test.c @@ -301,7 +301,7 @@ main( int argc, char **argv ) ldap_debug = atoi( optarg ); #ifdef LBER_DEBUG if ( ldap_debug & LDAP_DEBUG_PACKETS ) { - lber_debug = ldap_debug; + ber_set_option( NULL, LBER_OPT_DEBUG_LEVEL, &ldap_debug ); } #endif #else @@ -486,7 +486,7 @@ main( int argc, char **argv ) ldap_debug = atoi( line ); #ifdef LBER_DEBUG if ( ldap_debug & LDAP_DEBUG_PACKETS ) { - lber_debug = ldap_debug; + ber_set_option( NULL, LBER_OPT_DEBUG_LEVEL, &ldap_debug ); } #endif #else