Replace NULLBER with NULL

Replace `lber_int_debug = ...' with `ber_set_option( ... )'
This commit is contained in:
Hallvard Furuseth 1999-08-03 02:31:29 +00:00
parent 0310b8b048
commit 79fb44b129
4 changed files with 5 additions and 5 deletions

View File

@ -154,7 +154,7 @@ main( int argc, char **argv )
#ifdef LDAP_DEBUG
ldap_debug = atoi( optarg );
if ( ldap_debug & LDAP_DEBUG_PACKETS )
lber_int_debug = ldap_debug;
ber_set_option( NULL, LBER_OPT_DEBUG_LEVEL, &ldap_debug );
#else
fprintf( stderr, "Not compiled with -DLDAP_DEBUG!\n" );
#endif

View File

@ -317,7 +317,7 @@ send_ldap_result(
tag = LBER_SEQUENCE;
#endif
if ( (ber = der_alloc()) == NULLBER ) {
if ( (ber = der_alloc()) == NULL ) {
Debug( LDAP_DEBUG_ANY, "der_alloc failed\n", 0, 0, 0 );
return( -1 );
}

View File

@ -552,7 +552,7 @@ search_result(
#ifdef LDAP_CONNECTIONLESS
if ( m->m_cldap ) {
if ((ber = der_alloc()) == NULLBER ) {
if ((ber = der_alloc()) == NULL ) {
send_ldap_msgresult( sb, SEARCHRESTAG, m,
LDAP_OPERATIONS_ERROR, NULL, "der_alloc" );
return;
@ -573,7 +573,7 @@ search_result(
if ( !m->m_cldap )
#endif /* LDAP_CONNECTIONLESS */
if ( (ber = der_alloc()) == NULLBER ) {
if ( (ber = der_alloc()) == NULL ) {
send_ldap_msgresult( sb, SEARCHRESTAG, m,
LDAP_OPERATIONS_ERROR, NULL, "der_alloc" );
return;

View File

@ -439,7 +439,7 @@ put_photo_value( BerElement *ber, AttributeValue av )
len = ps_get_abs( pe );
Debug( LDAP_DEBUG_ARGS, "put_photo_val: ber_printf %d bytes\n",
len, 0, 0 );
if (( phber = der_alloc()) == NULLBER ) {
if (( phber = der_alloc()) == NULL ) {
Debug( LDAP_DEBUG_ANY, "der_alloc failed\n", 0, 0, 0 );
return( -1 );
}