]> git.sur5r.net Git - openldap/commitdiff
#include "lutil.h", to get lutil_entropy(). Fix call to lutil_entropy().
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 29 Sep 2003 23:33:39 +0000 (23:33 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 29 Sep 2003 23:33:39 +0000 (23:33 +0000)
servers/slapd/back-bdb/trans.c

index 51fecf418b78f8c9ff79352036a803a0242b7e03..e84bd5242fec6d173fff9220995c64b9cac0cc2b 100644 (file)
@@ -9,6 +9,7 @@
 #include "back-bdb.h"
 #include "external.h"
 #include "lber_pvt.h"
+#include "lutil.h"
 
 
 /* Congestion avoidance code
@@ -25,7 +26,7 @@ bdb_trans_backoff( int num_retries )
        unsigned long max_key = -1;
        struct timeval timeout;
 
-       lutil_entropy( &key, sizeof( unsigned long ));
+       lutil_entropy( (unsigned char *) &key, sizeof( unsigned long ));
 
        for ( i = 0; i < num_retries; i++ ) {
                if ( i >= 5 ) break;