From 06822b8977b91cf16b6d942648d877c53b7bd11c Mon Sep 17 00:00:00 2001 From: Stefan Huehner Date: Fri, 15 Jul 2005 09:58:36 +0000 Subject: [PATCH] Fix some write-strings warnings. --- dlls/dsound/dsound.c | 4 ++-- dlls/dsound/tests/ds3d.c | 2 +- dlls/winsock/tests/sock.c | 4 ++-- programs/rundll32/rundll32.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dlls/dsound/dsound.c b/dlls/dsound/dsound.c index afb3dcf12bc..6f67fc53149 100644 --- a/dlls/dsound/dsound.c +++ b/dlls/dsound/dsound.c @@ -65,7 +65,7 @@ static const char * dumpCooperativeLevel(DWORD level) 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) diff --git a/dlls/dsound/tests/ds3d.c b/dlls/dsound/tests/ds3d.c index be5f2b72498..1388712530f 100644 --- a/dlls/dsound/tests/ds3d.c +++ b/dlls/dsound/tests/ds3d.c @@ -71,7 +71,7 @@ char* wave_generate_la(WAVEFORMATEX* wfx, double duration, DWORD* size) const char * getDSBCAPS(DWORD xmask) { static struct { DWORD mask; - char *name; + const char *name; } flags[] = { #define FE(x) { x, #x }, FE(DSBCAPS_PRIMARYBUFFER) diff --git a/dlls/winsock/tests/sock.c b/dlls/winsock/tests/sock.c index dd8df03df76..e23dff17cf8 100644 --- a/dlls/winsock/tests/sock.c +++ b/dlls/winsock/tests/sock.c @@ -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} }; diff --git a/programs/rundll32/rundll32.c b/programs/rundll32/rundll32.c index 77771001652..4b62a2daa81 100644 --- a/programs/rundll32/rundll32.c +++ b/programs/rundll32/rundll32.c @@ -53,8 +53,8 @@ typedef void (WINAPI *EntryPointA)(HWND hWnd, HINSTANCE hInst, LPSTR lpszCmdLine * 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);