Fixed warnings with gcc option "-Wwrite-strings".
Index: dlls/rpcrt4/rpc_binding.c =================================================================== RCS file: /home/wine/wine/dlls/rpcrt4/rpc_binding.c,v retrieving revision 1.14 diff -u -r1.14 rpc_binding.c --- dlls/rpcrt4/rpc_binding.c 5 Sep 2003 23:08:32 -0000 1.14 +++ dlls/rpcrt4/rpc_binding.c 7 Oct 2003 19:47:24 -0000 @@ -52,7 +52,7 @@ }; static CRITICAL_SECTION conn_cache_cs = { &critsect_debug, -1, 0, 0, 0, 0 }; -LPSTR RPCRT4_strndupA(LPSTR src, INT slen) +LPSTR RPCRT4_strndupA(LPCSTR src, INT slen) { DWORD len; LPSTR s; @@ -195,7 +195,7 @@ /* protseq=ncalrpc: supposed to use NT LPC ports, * but we'll implement it with named pipes for now */ if (strcmp(Connection->Protseq, "ncalrpc") == 0) { - static LPSTR prefix = "\\\\.\\pipe\\lrpc\\"; + static LPCSTR prefix = "\\\\.\\pipe\\lrpc\\"; LPSTR pname; pname = HeapAlloc(GetProcessHeap(), 0, strlen(prefix) + strlen(Connection->Endpoint) + 1); strcat(strcpy(pname, prefix), Connection->Endpoint); @@ -216,7 +216,7 @@ } /* protseq=ncacn_np: named pipes */ else if (strcmp(Connection->Protseq, "ncacn_np") == 0) { - static LPSTR prefix = "\\\\."; + static LPCSTR prefix = "\\\\."; LPSTR pname; pname = HeapAlloc(GetProcessHeap(), 0, strlen(prefix) + strlen(Connection->Endpoint) + 1); strcat(strcpy(pname, prefix), Connection->Endpoint); @@ -244,7 +244,7 @@ /* protseq=ncalrpc: supposed to use NT LPC ports, * but we'll implement it with named pipes for now */ if (strcmp(Connection->Protseq, "ncalrpc") == 0) { - static LPSTR prefix = "\\\\.\\pipe\\lrpc\\"; + static LPCSTR prefix = "\\\\.\\pipe\\lrpc\\"; LPSTR pname; HANDLE conn; DWORD err; @@ -278,7 +278,7 @@ } /* protseq=ncacn_np: named pipes */ else if (strcmp(Connection->Protseq, "ncacn_np") == 0) { - static LPSTR prefix = "\\\\."; + static LPCSTR prefix = "\\\\."; LPSTR pname; HANDLE conn; DWORD err; Index: dlls/rpcrt4/rpc_binding.h =================================================================== RCS file: /home/wine/wine/dlls/rpcrt4/rpc_binding.h,v retrieving revision 1.4 diff -u -r1.4 rpc_binding.h --- dlls/rpcrt4/rpc_binding.h 19 Apr 2003 20:06:42 -0000 1.4 +++ dlls/rpcrt4/rpc_binding.h 7 Oct 2003 19:47:24 -0000 @@ -51,7 +51,7 @@ RpcConnection* FromConn; } RpcBinding; -LPSTR RPCRT4_strndupA(LPSTR src, INT len); +LPSTR RPCRT4_strndupA(LPCSTR src, INT len); LPWSTR RPCRT4_strndupW(LPWSTR src, INT len); LPSTR RPCRT4_strdupWtoA(LPWSTR src); LPWSTR RPCRT4_strdupAtoW(LPSTR src);