]> git.sur5r.net Git - openldap/commitdiff
Remove lint
authorKurt Zeilenga <kurt@openldap.org>
Wed, 18 Oct 2000 00:28:39 +0000 (00:28 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 18 Oct 2000 00:28:39 +0000 (00:28 +0000)
libraries/liblutil/entropy.c

index 46907b0af9015c001ab6d72b009039a89f6c0af9..14609130128b0436d23fd02f476a3facd3e37ff5 100644 (file)
@@ -96,7 +96,7 @@ int lutil_entropy( unsigned char *buf, ber_len_t nbytes )
                struct rdata_s {
                        int counter;
 
-                       char *buf;
+                       unsigned char *buf;
                        struct rdata_s *stack;
 
                        pid_t   pid;
@@ -134,10 +134,10 @@ int lutil_entropy( unsigned char *buf, ber_len_t nbytes )
                        rdata.junk++;
 
                        lutil_MD5Init( &ctx );
-                       lutil_MD5Update( &ctx, (char *) &rdata, sizeof( rdata ) );
+                       lutil_MD5Update( &ctx, (unsigned char *) &rdata, sizeof( rdata ) );
 
                        /* allow caller to provided additional entropy */
-                       lutil_MD5Update( &ctx, (char *) &buf, nbytes );
+                       lutil_MD5Update( &ctx, buf, nbytes );
 
                        lutil_MD5Final( digest, &ctx );