aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-12-28 20:00:16 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-01-06 00:50:30 +0100
commitc6a2fda07fbb0a18ac3c1ecb6bf96f2eea98d2c9 (patch)
treeba2d478b6d4a7e7aee9bd6d18aff84a87162022c /nx-X11/programs/Xserver
parent576255425576c6ee02a18f622de47daa66ced718 (diff)
downloadnx-libs-c6a2fda07fbb0a18ac3c1ecb6bf96f2eea98d2c9.tar.gz
nx-libs-c6a2fda07fbb0a18ac3c1ecb6bf96f2eea98d2c9.tar.bz2
nx-libs-c6a2fda07fbb0a18ac3c1ecb6bf96f2eea98d2c9.zip
Screen.c: drop variable
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Screen.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
index 9e4d3e433..399a3ea53 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -2570,8 +2570,6 @@ int nxagentShadowInit(ScreenPtr pScreen, WindowPtr pWin)
Atom nxagentShadowAtom;
- int fd;
-
#endif
#ifdef TEST
@@ -2813,19 +2811,17 @@ int nxagentShadowInit(ScreenPtr pScreen, WindowPtr pWin)
nxagentBppShadow = 1;
}
-#if !defined(__CYGWIN__)
+#ifndef __CYGWIN__
imageByteOrder = nxagentShadowDisplay -> byte_order;
- fd = XConnectionNumber(nxagentShadowDisplay);
-
- nxagentShadowXConnectionNumber = fd;
+ nxagentShadowXConnectionNumber = XConnectionNumber(nxagentShadowDisplay);
#endif
#ifdef TEST
fprintf(stderr, "nxagentShadowInit: Adding the X connection [%d] "
- "to the device set.\n", fd);
+ "to the device set.\n", nxagentShadowXConnectionNumber);
#endif
SetNotifyFd(nxagentShadowXConnectionNumber, nxagentNotifyConnection, X_NOTIFY_READ, NULL);