[janitor] dlls/user -Wwrite-strings cleanup
Daniel Marmier
d.marmier at bluewin.ch
Sun Oct 5 05:44:15 CDT 2003
Fixed warnings with gcc option "-Wwrite-strings".
-------------- next part --------------
Index: dlls/user/tests/sysparams.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/sysparams.c,v
retrieving revision 1.18
diff -u -r1.18 sysparams.c
--- dlls/user/tests/sysparams.c 11 Sep 2003 01:07:19 -0000 1.18
+++ dlls/user/tests/sysparams.c 5 Oct 2003 10:27:22 -0000
@@ -149,7 +149,7 @@
* lpsRegName - registry entry name
* lpsTestValue - value to test
*/
-static void _test_reg_key( LPSTR subKey1, LPSTR subKey2, LPSTR valName, LPSTR testValue )
+static void _test_reg_key( LPCSTR subKey1, LPCSTR subKey2, LPCSTR valName, LPCSTR testValue )
{
CHAR value[MAX_PATH];
DWORD valueLen;
@@ -256,7 +256,7 @@
ok(rc!=0,"***warning*** failed to restore the original value: rc=%d err=%ld\n",rc,GetLastError());
}
-static char *setmouse_valuenames[3] = {
+static const char *setmouse_valuenames[3] = {
SPI_SETMOUSE_VALNAME1,
SPI_SETMOUSE_VALNAME2,
SPI_SETMOUSE_VALNAME3
More information about the wine-patches
mailing list