aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-08-16 13:11:38 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-08-27 08:12:39 +0200
commit3563959c011c00dcbd9dace4d882b222aa31b27f (patch)
tree1d49cb2b80341523872cef6ccdb770d9d8d1f942
parentc34d1b2011236c7b69dac09b78cdfb972e20ef6a (diff)
downloadnx-libs-3563959c011c00dcbd9dace4d882b222aa31b27f.tar.gz
nx-libs-3563959c011c00dcbd9dace4d882b222aa31b27f.tar.bz2
nx-libs-3563959c011c00dcbd9dace4d882b222aa31b27f.zip
NXdispatch.c: move nxagentWMtimeout into the function
it is only used there, no need for a global variable
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
index da7a55b69..10616834e 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
@@ -141,10 +141,6 @@ void nxagentWaitDisplay(void);
void nxagentListRemoteFonts(const char *, int);
-#ifdef NXAGENT_ONSTART
-unsigned int nxagentWMtimeout = 0;
-#endif
-
/*
* Timeouts based on screen saver time.
*/
@@ -264,12 +260,11 @@ Dispatch(void)
#ifdef NXAGENT_ONSTART
/*
- * Set NX_WM property (used by NX client to identify
- * the agent's window) three seconds since the first
- * client connects.
+ * Set NX_WM property (used by NX client to identify the agent's
+ * window) three seconds since the first client connects.
*/
- nxagentWMtimeout = GetTimeInMillis() + 3000;
+ unsigned int nxagentWMtimeout = GetTimeInMillis() + 3000;
#endif