Fix some write-strings warnings.

oldstable
Stefan Huehner 2005-07-15 09:58:36 +00:00 committed by Alexandre Julliard
parent 6b7778f36b
commit 06822b8977
4 changed files with 7 additions and 7 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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} };

View File

@ -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);