Commit 02731de4 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

x11drv: Write-strings warnings fix.

parent 94543cb6
...@@ -1367,7 +1367,7 @@ void X11DRV_KeyEvent( HWND hwnd, XEvent *xev ) ...@@ -1367,7 +1367,7 @@ void X11DRV_KeyEvent( HWND hwnd, XEvent *xev )
Str[ascii_chars] = '\0'; Str[ascii_chars] = '\0';
if (TRACE_ON(key)){ if (TRACE_ON(key)){
char *ksname; const char *ksname;
wine_tsx11_lock(); wine_tsx11_lock();
ksname = XKeysymToString(keysym); ksname = XKeysymToString(keysym);
...@@ -1710,7 +1710,7 @@ void X11DRV_InitKeyboard(void) ...@@ -1710,7 +1710,7 @@ void X11DRV_InitKeyboard(void)
TRACE("("); TRACE("(");
for (i = 0; i < keysyms_per_keycode; i += 1) for (i = 0; i < keysyms_per_keycode; i += 1)
{ {
char *ksname; const char *ksname;
keysym = XLookupKeysym(&e2, i); keysym = XLookupKeysym(&e2, i);
ksname = XKeysymToString(keysym); ksname = XKeysymToString(keysym);
...@@ -1731,7 +1731,7 @@ void X11DRV_InitKeyboard(void) ...@@ -1731,7 +1731,7 @@ void X11DRV_InitKeyboard(void)
/* If some keys still lack scancodes, assign some arbitrary ones to them now */ /* If some keys still lack scancodes, assign some arbitrary ones to them now */
for (scan = 0x60, keyc = min_keycode; keyc <= max_keycode; keyc++) for (scan = 0x60, keyc = min_keycode; keyc <= max_keycode; keyc++)
if (keyc2vkey[keyc]&&!keyc2scan[keyc]) { if (keyc2vkey[keyc]&&!keyc2scan[keyc]) {
char *ksname; const char *ksname;
keysym = XKeycodeToKeysym(display, keyc, 0); keysym = XKeycodeToKeysym(display, keyc, 0);
ksname = XKeysymToString(keysym); ksname = XKeysymToString(keysym);
if (!ksname) ksname = "NoSymbol"; if (!ksname) ksname = "NoSymbol";
...@@ -2445,7 +2445,7 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState, ...@@ -2445,7 +2445,7 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
} }
else else
{ {
char *ksname; const char *ksname;
wine_tsx11_lock(); wine_tsx11_lock();
ksname = XKeysymToString(keysym); ksname = XKeysymToString(keysym);
......
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