Dmitry Timoshkov : rpcrt4: Make some data const.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Dec 14 14:23:53 CST 2006


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

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Thu Dec 14 22:47:33 2006 +0800

rpcrt4: Make some data const.

---

 dlls/rpcrt4/rpc_transport.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index 4382a8b..f8091da 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -193,7 +193,7 @@ static RPC_STATUS rpcrt4_conn_open_pipe(
 static RPC_STATUS rpcrt4_ncalrpc_open(RpcConnection* Connection)
 {
   RpcConnection_np *npc = (RpcConnection_np *) Connection;
-  static LPCSTR prefix = "\\\\.\\pipe\\lrpc\\";
+  static const char prefix[] = "\\\\.\\pipe\\lrpc\\";
   RPC_STATUS r;
   LPSTR pname;
 
@@ -213,7 +213,7 @@ static RPC_STATUS rpcrt4_ncalrpc_open(Rp
 
 static RPC_STATUS rpcrt4_protseq_ncalrpc_open_endpoint(RpcServerProtseq* protseq, LPSTR endpoint)
 {
-  static LPCSTR prefix = "\\\\.\\pipe\\lrpc\\";
+  static const char prefix[] = "\\\\.\\pipe\\lrpc\\";
   RPC_STATUS r;
   LPSTR pname;
   RpcConnection *Connection;
@@ -241,7 +241,7 @@ static RPC_STATUS rpcrt4_protseq_ncalrpc
 static RPC_STATUS rpcrt4_ncacn_np_open(RpcConnection* Connection)
 {
   RpcConnection_np *npc = (RpcConnection_np *) Connection;
-  static LPCSTR prefix = "\\\\.";
+  static const char prefix[] = "\\\\.";
   RPC_STATUS r;
   LPSTR pname;
 
@@ -260,7 +260,7 @@ static RPC_STATUS rpcrt4_ncacn_np_open(R
 
 static RPC_STATUS rpcrt4_protseq_ncacn_np_open_endpoint(RpcServerProtseq *protseq, LPSTR endpoint)
 {
-  static LPCSTR prefix = "\\\\.";
+  static const char prefix[] = "\\\\.";
   RPC_STATUS r;
   LPSTR pname;
   RpcConnection *Connection;
@@ -295,7 +295,7 @@ static RPC_STATUS rpcrt4_ncacn_np_handof
 {
   RPC_STATUS status;
   LPSTR pname;
-  static LPCSTR prefix = "\\\\.";
+  static const char prefix[] = "\\\\.";
 
   rpcrt4_conn_np_handoff((RpcConnection_np *)old_conn, (RpcConnection_np *)new_conn);
 
@@ -311,7 +311,7 @@ static RPC_STATUS rpcrt4_ncalrpc_handoff
 {
   RPC_STATUS status;
   LPSTR pname;
-  static LPCSTR prefix = "\\\\.\\pipe\\lrpc\\";
+  static const char prefix[] = "\\\\.\\pipe\\lrpc\\";
 
   TRACE("%s\n", old_conn->Endpoint);
 




More information about the wine-cvs mailing list