diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-05-26 00:05:51 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-10-17 22:38:05 +0200 |
commit | 3a7c375932d5f34be61347c58739e2e47f59aae5 (patch) | |
tree | ac2b4f53243eccee1bce6802aeb6e8a1d94ffe92 /nx-X11 | |
parent | 832e0281131667de253bf5e64b6afa384ed56943 (diff) | |
download | nx-libs-3a7c375932d5f34be61347c58739e2e47f59aae5.tar.gz nx-libs-3a7c375932d5f34be61347c58739e2e47f59aae5.tar.bz2 nx-libs-3a7c375932d5f34be61347c58739e2e47f59aae5.zip |
Init.c: small simplification
Diffstat (limited to 'nx-X11')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Init.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Init.c b/nx-X11/programs/Xserver/hw/nxagent/Init.c index 804c8c43b..b06d8e239 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Init.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Init.c @@ -405,10 +405,8 @@ void nxagentNotifyConnection(int fd, int ready, void *data) void InitInput(int argc, char *argv[]) { - void *ptr, *kbd; - - ptr = AddInputDevice(nxagentPointerProc, True); - kbd = AddInputDevice(nxagentKeyboardProc, True); + void *ptr = AddInputDevice(nxagentPointerProc, True); + void *kbd = AddInputDevice(nxagentKeyboardProc, True); RegisterPointerDevice(ptr); RegisterKeyboardDevice(kbd); |