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:27:00 +0200
commitf39b81d31bc7d0427ea9cca04d0e4a21579d7383 (patch)
tree64846b3be22e28618ffe285db02d55fa5d4de709
parent4202d5094c72de28fe48fcfb165366bc8bdf68e7 (diff)
downloadnx-libs-f39b81d31bc7d0427ea9cca04d0e4a21579d7383.tar.gz
nx-libs-f39b81d31bc7d0427ea9cca04d0e4a21579d7383.tar.bz2
nx-libs-f39b81d31bc7d0427ea9cca04d0e4a21579d7383.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