From: Hallvard Furuseth Date: Mon, 29 Sep 2003 23:33:39 +0000 (+0000) Subject: #include "lutil.h", to get lutil_entropy(). Fix call to lutil_entropy(). X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~621 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8efd39183277f867fb462ae314eff2874b0cbbf6;p=openldap #include "lutil.h", to get lutil_entropy(). Fix call to lutil_entropy(). --- diff --git a/servers/slapd/back-bdb/trans.c b/servers/slapd/back-bdb/trans.c index 51fecf418b..e84bd5242f 100644 --- a/servers/slapd/back-bdb/trans.c +++ b/servers/slapd/back-bdb/trans.c @@ -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;