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);
static int nas_send_buffer(WINE_WAVEOUT* wwo);
/* These strings used only for tracing */
static const char *wodPlayerCmdString[] = {
static const char * const wodPlayerCmdString[] = {
"WINE_WM_PAUSING",
"WINE_WM_RESTARTING",
"WINE_WM_RESETTING",
......@@ -214,21 +214,21 @@ static const char *wodPlayerCmdString[] = {
"WINE_WM_CLOSING",
};
static char *nas_elementnotify_kinds[] = {
static const char * const nas_elementnotify_kinds[] = {
"LowWater",
"HighWater",
"State",
"Unknown"
};
static char *nas_states[] = {
static const char * const nas_states[] = {
"Stop",
"Start",
"Pause",
"Any"
};
static char *nas_reasons[] = {
static const char * const nas_reasons[] = {
"User",
"Underrun",
"Overrun",
......@@ -238,13 +238,13 @@ static char *nas_reasons[] = {
"Any"
};
static char* nas_reason(unsigned int reason)
static const char* nas_reason(unsigned int reason)
{
if (reason > 6) reason = 6;
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;
return nas_elementnotify_kinds[kind];
......@@ -271,7 +271,7 @@ static const char* nas_event_type(unsigned int type)
#endif
static char* nas_state(unsigned int state)
static const char* nas_state(unsigned int state)
{
if (state > 3) state = 3;
return nas_states[state];
......
......@@ -35,7 +35,7 @@
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;
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