From: Kurt Zeilenga Date: Sat, 14 Oct 2000 02:14:38 +0000 (+0000) Subject: entropy should be unsigned X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1741 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bcdd316b86d360db617e4ed29643289bfcf09909;p=openldap entropy should be unsigned --- diff --git a/include/lutil.h b/include/lutil.h index c6a52d8441..a8b9d5eae8 100644 --- a/include/lutil.h +++ b/include/lutil.h @@ -52,7 +52,7 @@ lutil_detach LDAP_P(( /* entropy.c */ LDAP_LUTIL_F( int ) lutil_entropy LDAP_P(( - char *buf, + unsigned char *buf, ber_len_t nbytes )); /* passwd.c */ diff --git a/libraries/liblutil/entropy.c b/libraries/liblutil/entropy.c index eb3209ec39..46907b0af9 100644 --- a/libraries/liblutil/entropy.c +++ b/libraries/liblutil/entropy.c @@ -34,7 +34,7 @@ * This routinue should be extended to support additional sources * of entropy. */ -int lutil_entropy( char *buf, ber_len_t nbytes ) +int lutil_entropy( unsigned char *buf, ber_len_t nbytes ) { if( nbytes == 0 ) return 0;