aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2016-10-26 11:01:57 +0200
committerUlrich Sibiller <uli42@gmx.de>2016-11-08 07:33:48 +0100
commit08ed062c4d90dc8a26bac939892f23188a1366a3 (patch)
tree4dedfff3672aeb930ecb3773fd045561fb9d6ed4 /nx-X11/programs
parentd37f9f31176ab94304fcc72b4aef507e2147005a (diff)
downloadnx-libs-08ed062c4d90dc8a26bac939892f23188a1366a3.tar.gz
nx-libs-08ed062c4d90dc8a26bac939892f23188a1366a3.tar.bz2
nx-libs-08ed062c4d90dc8a26bac939892f23188a1366a3.zip
Keyboard.c: move variable to inner scope
Diffstat (limited to 'nx-X11/programs')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Keyboard.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
index 1529cd359..35a09958e 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -697,10 +697,6 @@ int nxagentKeyboardProc(DeviceIntPtr pDev, int onoff)
int free_model = 0, free_layout = 0;
XkbDescPtr xkb = NULL;
- #ifdef TEST
- int ret;
- #endif
-
switch (onoff)
{
case DEVICE_INIT:
@@ -857,13 +853,15 @@ XkbError:
(char *) values.auto_repeats, sizeof(values.auto_repeats));
#ifdef TEST
- ret =
+ {
+ int ret =
#endif
- InitKeyboardDeviceStruct((DevicePtr) pDev, &keySyms, modmap,
+ InitKeyboardDeviceStruct((DevicePtr) pDev, &keySyms, modmap,
nxagentBell, nxagentChangeKeyboardControl);
#ifdef TEST
- fprintf(stderr, "nxagentKeyboardProc: InitKeyboardDeviceStruct returns [%d].\n", ret);
+ fprintf(stderr, "nxagentKeyboardProc: InitKeyboardDeviceStruct returns [%d].\n", ret);
+ }
#endif
#ifdef XKB