fix some write-strings warnings
Stefan Huehner
stefan at huehner.org
Thu Jul 14 05:56:37 CDT 2005
Hi,
patch fixes assignment of "strings" to const char* instead of char*
ChangeLog:
- fix some write-strings warnings
Regards,
Stefan
-------------- next part --------------
Index: dlls/dsound/dsound.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/dsound.c,v
retrieving revision 1.34
diff -u -p -r1.34 dsound.c
--- dlls/dsound/dsound.c 1 Jun 2005 19:57:42 -0000 1.34
+++ dlls/dsound/dsound.c 14 Jul 2005 10:50:26 -0000
@@ -65,7 +65,7 @@ static const char * dumpCooperativeLevel
static void _dump_DSCAPS(DWORD xmask) {
struct {
DWORD mask;
- char *name;
+ const char *name;
} flags[] = {
#define FE(x) { x, #x },
FE(DSCAPS_PRIMARYMONO)
@@ -91,7 +91,7 @@ static void _dump_DSCAPS(DWORD xmask) {
static void _dump_DSBCAPS(DWORD xmask) {
struct {
DWORD mask;
- char *name;
+ const char *name;
} flags[] = {
#define FE(x) { x, #x },
FE(DSBCAPS_PRIMARYBUFFER)
Index: dlls/dsound/tests/ds3d.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/ds3d.c,v
retrieving revision 1.25
diff -u -p -r1.25 ds3d.c
--- dlls/dsound/tests/ds3d.c 20 Jun 2005 14:18:04 -0000 1.25
+++ dlls/dsound/tests/ds3d.c 14 Jul 2005 10:50:26 -0000
@@ -71,7 +71,7 @@ char* wave_generate_la(WAVEFORMATEX* wfx
const char * getDSBCAPS(DWORD xmask) {
static struct {
DWORD mask;
- char *name;
+ const char *name;
} flags[] = {
#define FE(x) { x, #x },
FE(DSBCAPS_PRIMARYBUFFER)
-------------- next part --------------
Index: dlls/winsock/tests/sock.c
===================================================================
RCS file: /home/wine/wine/dlls/winsock/tests/sock.c,v
retrieving revision 1.22
diff -u -p -r1.22 sock.c
--- dlls/winsock/tests/sock.c 17 Jun 2005 10:11:37 -0000 1.22
+++ dlls/winsock/tests/sock.c 14 Jul 2005 10:50:38 -0000
@@ -990,8 +990,8 @@ static void test_UDP(void)
static void WINAPI do_getservbyname( HANDLE *starttest )
{
struct {
- char *name;
- char *proto;
+ const char *name;
+ const char *proto;
int port;
} serv[2] = { {"domain", "udp", 53}, {"telnet", "tcp", 23} };
-------------- next part --------------
Index: programs/rundll32/rundll32.c
===================================================================
RCS file: /home/wine/wine/programs/rundll32/rundll32.c,v
retrieving revision 1.11
diff -u -p -r1.11 rundll32.c
--- programs/rundll32/rundll32.c 25 Feb 2005 14:07:56 -0000 1.11
+++ programs/rundll32/rundll32.c 14 Jul 2005 10:50:49 -0000
@@ -53,8 +53,8 @@ typedef void (WINAPI *EntryPointA)(HWND
* Control_RunDLL needs to have a window. So lets make us a very
* simple window class.
*/
-static TCHAR *szTitle = "rundll32";
-static TCHAR *szWindowClass = "class_rundll32";
+static const TCHAR *szTitle = "rundll32";
+static const TCHAR *szWindowClass = "class_rundll32";
static HINSTANCE16 (WINAPI *pLoadLibrary16)(LPCSTR libname);
static FARPROC16 (WINAPI *pGetProcAddress16)(HMODULE16 hModule, LPCSTR name);
More information about the wine-patches
mailing list