aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-08-16 13:08:42 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-08-27 08:27:00 +0200
commit4202d5094c72de28fe48fcfb165366bc8bdf68e7 (patch)
treee27bd8384ac95e574098f6fad6ea94aa155f7dc9
parent60a3c9b0ab58d2ab1574de84b421f0f9e5136b75 (diff)
downloadnx-libs-4202d5094c72de28fe48fcfb165366bc8bdf68e7.tar.gz
nx-libs-4202d5094c72de28fe48fcfb165366bc8bdf68e7.tar.bz2
nx-libs-4202d5094c72de28fe48fcfb165366bc8bdf68e7.zip
NXdispatch.c: drop currentDispatch variable
was only used once
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
index 0ad26b0bb..da7a55b69 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
@@ -244,8 +244,6 @@ Dispatch(void)
register HWEventQueuePtr* icheck = checkForInput;
long start_tick;
- unsigned long currentDispatch = 0;
-
nextFreeClientID = 1;
InitSelections();
nClients = 0;
@@ -371,18 +369,15 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
#ifdef NXAGENT_ONSTART
- currentDispatch = GetTimeInMillis();
-
- /*
- * If the timeout is expired set the
- * selection informing the NX client
- * that the agent is ready.
- */
+ /*
+ * If the timeout is expired set the selection informing the
+ * NX client that the agent is ready.
+ */
- if (nxagentWMtimeout < currentDispatch)
- {
- nxagentRemoveSplashWindow();
- }
+ if (nxagentWMtimeout < GetTimeInMillis())
+ {
+ nxagentRemoveSplashWindow();
+ }
nxagentClients = nClients;