]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorKurt Zeilenga <kurt@openldap.org>
Thu, 22 May 2003 05:32:06 +0000 (05:32 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 22 May 2003 05:32:06 +0000 (05:32 +0000)
libraries/liblber/bprint.c
libraries/liblber/dtest.c
libraries/liblber/io.c

index 5ba264ae6f559cde2f95714fc4b22648643e9eb6..760e66bdabb18f5b77d32c190b44c1247e501b34 100644 (file)
@@ -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)();
index e7a4a3f7d6cf7aaa71624aa41e8e3437779fd0fd..8297d6a881586104802145a4fe427eda7ea38ab4 100644 (file)
@@ -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",
index ecab5860ae3cffbbf558fc92e9c31fec3e5cec7a..09b8b92c077ae0ccf6543f477c5f22ae9b562a50 100644 (file)
@@ -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 );