]> git.sur5r.net Git - openldap/commitdiff
entropy should be unsigned
authorKurt Zeilenga <kurt@openldap.org>
Sat, 14 Oct 2000 02:14:38 +0000 (02:14 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 14 Oct 2000 02:14:38 +0000 (02:14 +0000)
include/lutil.h
libraries/liblutil/entropy.c

index c6a52d8441ec7b1e376a918217186758b22a30d6..a8b9d5eae8f2a21467af3a385106aa7deaa70d9e 100644 (file)
@@ -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 */
index eb3209ec397482631293e046fe60c0f1cb5b3da5..46907b0af9015c001ab6d72b009039a89f6c0af9 100644 (file)
@@ -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;