From c6a2fda07fbb0a18ac3c1ecb6bf96f2eea98d2c9 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Sat, 28 Dec 2019 20:00:16 +0100 Subject: Screen.c: drop variable --- nx-X11/programs/Xserver/hw/nxagent/Screen.c | 10 +++------- 1 file 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); -- cgit v1.2.3