Paul Vriens : rpcrt4/tests: Cast-qual warning fixes.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jan 12 13:55:15 CST 2007


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

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Fri Jan 12 14:09:59 2007 +0100

rpcrt4/tests: Cast-qual warning fixes.

---

 dlls/rpcrt4/tests/rpc.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/rpcrt4/tests/rpc.c b/dlls/rpcrt4/tests/rpc.c
index 36bf4ef..023741f 100644
--- a/dlls/rpcrt4/tests/rpc.c
+++ b/dlls/rpcrt4/tests/rpc.c
@@ -178,11 +178,13 @@ static void TestDceErrorInqText (void)
 static void test_rpc_ncacn_ip_tcp(void)
 {
     RPC_STATUS status;
+    static unsigned char foo[] = "foo";
+    static unsigned char ncacn_ip_tcp[] = "ncacn_ip_tcp";
 
-    status = RpcNetworkIsProtseqValid((unsigned char*)"foo");
+    status = RpcNetworkIsProtseqValid(foo);
     ok(status == RPC_S_INVALID_RPC_PROTSEQ, "return wrong\n");
 
-    status = RpcNetworkIsProtseqValid((unsigned char*)"ncacn_ip_tcp");
+    status = RpcNetworkIsProtseqValid(ncacn_ip_tcp);
     ok(status == RPC_S_OK, "return wrong\n");
 }
 




More information about the wine-cvs mailing list