Commit 08ed062c authored by Ulrich Sibiller's avatar Ulrich Sibiller

Keyboard.c: move variable to inner scope

parent d37f9f31
...@@ -697,10 +697,6 @@ int nxagentKeyboardProc(DeviceIntPtr pDev, int onoff) ...@@ -697,10 +697,6 @@ int nxagentKeyboardProc(DeviceIntPtr pDev, int onoff)
int free_model = 0, free_layout = 0; int free_model = 0, free_layout = 0;
XkbDescPtr xkb = NULL; XkbDescPtr xkb = NULL;
#ifdef TEST
int ret;
#endif
switch (onoff) switch (onoff)
{ {
case DEVICE_INIT: case DEVICE_INIT:
...@@ -857,13 +853,15 @@ XkbError: ...@@ -857,13 +853,15 @@ XkbError:
(char *) values.auto_repeats, sizeof(values.auto_repeats)); (char *) values.auto_repeats, sizeof(values.auto_repeats));
#ifdef TEST #ifdef TEST
ret = {
int ret =
#endif #endif
InitKeyboardDeviceStruct((DevicePtr) pDev, &keySyms, modmap, InitKeyboardDeviceStruct((DevicePtr) pDev, &keySyms, modmap,
nxagentBell, nxagentChangeKeyboardControl); nxagentBell, nxagentChangeKeyboardControl);
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentKeyboardProc: InitKeyboardDeviceStruct returns [%d].\n", ret); fprintf(stderr, "nxagentKeyboardProc: InitKeyboardDeviceStruct returns [%d].\n", ret);
}
#endif #endif
#ifdef XKB #ifdef XKB
......
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