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

Alexandre Julliard julliard at winehq.org
Thu Apr 1 11:25:05 CDT 2010


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

Author: Mikhail Maroukhine <mikolg at yandex.ru>
Date:   Thu Apr  1 01:41:23 2010 +0700

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

---

 dlls/rsaenh/tests/rsaenh.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index a13ca8e..5fe0033 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -476,7 +476,7 @@ static void test_hashes(void)
     ok(result, "CryptReleaseContext failed 0x%08x\n", GetLastError());
 
     SetLastError(0xdeadbeef);
-    result = CryptHashData(hHash, (BYTE *)"data", sizeof("data"), 0);
+    result = CryptHashData(hHash, (const BYTE *)"data", sizeof("data"), 0);
     error = GetLastError();
     ok(!result, "CryptHashData succeeded\n");
     ok(error == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER got %u\n", error);
@@ -493,7 +493,7 @@ static void test_hashes(void)
     result = CryptCreateHash(hProv, CALG_SHA1, 0, 0, &hHash);
     ok(result, "CryptCreateHash failed 0x%08x\n", GetLastError());
 
-    result = CryptHashData(hHash, (BYTE *)"data", sizeof("data"), 0);
+    result = CryptHashData(hHash, (const BYTE *)"data", sizeof("data"), 0);
     ok(result, "CryptHashData failed 0x%08x\n", GetLastError());
 
     result = CryptDuplicateHash(hHash, NULL, 0, &hHashClone);
@@ -504,7 +504,7 @@ static void test_hashes(void)
     ok(result, "CryptGetHashParam failed 0x%08x\n", GetLastError());
 
     /* add data after duplicating the hash */
-    result = CryptHashData(hHash, (BYTE *)"more data", sizeof("more data"), 0);
+    result = CryptHashData(hHash, (const BYTE *)"more data", sizeof("more data"), 0);
     ok(result, "CryptHashData failed 0x%08x\n", GetLastError());
 
     result = CryptDestroyHash(hHash);




More information about the wine-cvs mailing list