Commit 9b65ffbb authored by Stefan Huehner's avatar Stefan Huehner Committed by Alexandre Julliard

Add some consts to fix discard-qual warnings.

parent e3d1a13b
...@@ -204,7 +204,7 @@ static int nas_add_buffer(WINE_WAVEOUT* wwo); ...@@ -204,7 +204,7 @@ static int nas_add_buffer(WINE_WAVEOUT* wwo);
static int nas_send_buffer(WINE_WAVEOUT* wwo); static int nas_send_buffer(WINE_WAVEOUT* wwo);
/* These strings used only for tracing */ /* These strings used only for tracing */
static const char *wodPlayerCmdString[] = { static const char * const wodPlayerCmdString[] = {
"WINE_WM_PAUSING", "WINE_WM_PAUSING",
"WINE_WM_RESTARTING", "WINE_WM_RESTARTING",
"WINE_WM_RESETTING", "WINE_WM_RESETTING",
...@@ -214,21 +214,21 @@ static const char *wodPlayerCmdString[] = { ...@@ -214,21 +214,21 @@ static const char *wodPlayerCmdString[] = {
"WINE_WM_CLOSING", "WINE_WM_CLOSING",
}; };
static char *nas_elementnotify_kinds[] = { static const char * const nas_elementnotify_kinds[] = {
"LowWater", "LowWater",
"HighWater", "HighWater",
"State", "State",
"Unknown" "Unknown"
}; };
static char *nas_states[] = { static const char * const nas_states[] = {
"Stop", "Stop",
"Start", "Start",
"Pause", "Pause",
"Any" "Any"
}; };
static char *nas_reasons[] = { static const char * const nas_reasons[] = {
"User", "User",
"Underrun", "Underrun",
"Overrun", "Overrun",
...@@ -238,13 +238,13 @@ static char *nas_reasons[] = { ...@@ -238,13 +238,13 @@ static char *nas_reasons[] = {
"Any" "Any"
}; };
static char* nas_reason(unsigned int reason) static const char* nas_reason(unsigned int reason)
{ {
if (reason > 6) reason = 6; if (reason > 6) reason = 6;
return nas_reasons[reason]; return nas_reasons[reason];
} }
static char* nas_elementnotify_kind(unsigned int kind) static const char* nas_elementnotify_kind(unsigned int kind)
{ {
if (kind > 2) kind = 3; if (kind > 2) kind = 3;
return nas_elementnotify_kinds[kind]; return nas_elementnotify_kinds[kind];
...@@ -271,7 +271,7 @@ static const char* nas_event_type(unsigned int type) ...@@ -271,7 +271,7 @@ static const char* nas_event_type(unsigned int type)
#endif #endif
static char* nas_state(unsigned int state) static const char* nas_state(unsigned int state)
{ {
if (state > 3) state = 3; if (state > 3) state = 3;
return nas_states[state]; return nas_states[state];
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(scroll); WINE_DEFAULT_DEBUG_CHANNEL(scroll);
static void dump_region( char *p, HRGN hrgn) static void dump_region( const char *p, HRGN hrgn)
{ {
DWORD i, size; DWORD i, size;
RGNDATA *data = NULL; RGNDATA *data = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment