mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 15:19:34 -05:00
Remove dependency upon lber-int.h by using ber_set_option().
This commit is contained in:
parent
2e5a52414a
commit
c72cb0c8fe
2 changed files with 6 additions and 4 deletions
|
|
@ -28,7 +28,7 @@
|
||||||
#include <console.h>
|
#include <console.h>
|
||||||
#endif /* MACOS */
|
#endif /* MACOS */
|
||||||
|
|
||||||
#include "lber-int.h"
|
#include <lber.h>
|
||||||
|
|
||||||
static void usage( char *name )
|
static void usage( char *name )
|
||||||
{
|
{
|
||||||
|
|
@ -47,7 +47,8 @@ main( int argc, char **argv )
|
||||||
Sockbuf *sb;
|
Sockbuf *sb;
|
||||||
|
|
||||||
/* enable debugging */
|
/* enable debugging */
|
||||||
ber_int_debug = -1;
|
int ival = -1;
|
||||||
|
ber_set_option( NULL, LBER_OPT_DEBUG_LEVEL, &ival );
|
||||||
|
|
||||||
if ( argc < 2 ) {
|
if ( argc < 2 ) {
|
||||||
usage( argv[0] );
|
usage( argv[0] );
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
#include <console.h>
|
#include <console.h>
|
||||||
#endif /* HAVE_CONSOLE_H */
|
#endif /* HAVE_CONSOLE_H */
|
||||||
|
|
||||||
#include "lber-int.h"
|
#include "lber.h"
|
||||||
|
|
||||||
static void usage( char *name )
|
static void usage( char *name )
|
||||||
{
|
{
|
||||||
|
|
@ -51,7 +51,8 @@ main( int argc, char **argv )
|
||||||
Sockbuf *sb;
|
Sockbuf *sb;
|
||||||
|
|
||||||
/* enable debugging */
|
/* enable debugging */
|
||||||
ber_int_debug = -1;
|
int ival = -1;
|
||||||
|
ber_set_option( NULL, LBER_OPT_DEBUG_LEVEL, &ival );
|
||||||
|
|
||||||
if ( argc < 2 ) {
|
if ( argc < 2 ) {
|
||||||
usage( argv[0] );
|
usage( argv[0] );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue