Mikhail Maroukhine : rsaenh: Fix compiler warnings with flag -Wcast-qual.

Alexandre Julliard julliard at winehq.org
Mon Mar 29 09:57:56 CDT 2010


Module: wine
Branch: master
Commit: dc525dabd6820830df0ee8ea4d73656cc77adef1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dc525dabd6820830df0ee8ea4d73656cc77adef1

Author: Mikhail Maroukhine <mikolg at yandex.ru>
Date:   Sat Mar 27 22:49:24 2010 +0600

rsaenh: Fix compiler warnings with flag -Wcast-qual.

---

 dlls/rsaenh/sha2.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/rsaenh/sha2.c b/dlls/rsaenh/sha2.c
index 6c1a2e6..ea5bb28 100644
--- a/dlls/rsaenh/sha2.c
+++ b/dlls/rsaenh/sha2.c
@@ -490,7 +490,7 @@ void SHA256_Update(SHA256_CTX* context, const sha2_byte *data, size_t len) {
 	}
 	while (len >= SHA256_BLOCK_LENGTH) {
 		/* Process as many complete blocks as we can */
-		SHA256_Transform(context, (sha2_word32*)data);
+		SHA256_Transform(context, (const sha2_word32*)data);
 		context->bitcount += SHA256_BLOCK_LENGTH << 3;
 		len -= SHA256_BLOCK_LENGTH;
 		data += SHA256_BLOCK_LENGTH;
@@ -812,7 +812,7 @@ void SHA512_Update(SHA512_CTX* context, const sha2_byte *data, size_t len) {
 	}
 	while (len >= SHA512_BLOCK_LENGTH) {
 		/* Process as many complete blocks as we can */
-		SHA512_Transform(context, (sha2_word64*)data);
+		SHA512_Transform(context, (const sha2_word64*)data);
 		ADDINC128(context->bitcount, SHA512_BLOCK_LENGTH << 3);
 		len -= SHA512_BLOCK_LENGTH;
 		data += SHA512_BLOCK_LENGTH;




More information about the wine-cvs mailing list