From: Kurt Zeilenga Date: Thu, 22 May 2003 05:32:06 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~87 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=df1381fa3896018e8872678371fcb635adae5bd5;p=openldap cleanup --- diff --git a/libraries/liblber/bprint.c b/libraries/liblber/bprint.c index 5ba264ae6f..760e66bdab 100644 --- a/libraries/liblber/bprint.c +++ b/libraries/liblber/bprint.c @@ -32,9 +32,10 @@ FILE *ber_pvt_err_file = NULL; */ BER_ERRNO_FN ber_int_errno_fn = NULL; +static int ber_int_errno = LBER_ERROR_NONE; + int * ber_errno_addr(void) { - static int ber_int_errno = LBER_ERROR_NONE; if( ber_int_errno_fn ) { return (*ber_int_errno_fn)(); diff --git a/libraries/liblber/dtest.c b/libraries/liblber/dtest.c index e7a4a3f7d6..8297d6a881 100644 --- a/libraries/liblber/dtest.c +++ b/libraries/liblber/dtest.c @@ -83,7 +83,6 @@ main( int argc, char **argv ) perror( "ber_get_next" ); return( EXIT_FAILURE ); - } printf("decode: message tag 0x%lx and length %ld\n", diff --git a/libraries/liblber/io.c b/libraries/liblber/io.c index ecab5860ae..09b8b92c07 100644 --- a/libraries/liblber/io.c +++ b/libraries/liblber/io.c @@ -227,6 +227,7 @@ ber_flush( Sockbuf *sb, BerElement *ber, int freeit ) } while ( towrite > 0 ) { +#define LBER_TRICKLE #ifdef LBER_TRICKLE sleep(1); rc = ber_int_sb_write( sb, ber->ber_rwptr, 1 );