aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-12-31 00:49:57 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 16:38:11 +0100
commit9aa33917623085260f85d766bf5761ef2dddb333 (patch)
treebbcdf226fce7a513b06baa1ed61e35079080cdb5
parent90178b54883fc687b12574f19cd714e822a7d22c (diff)
downloadnx-libs-9aa33917623085260f85d766bf5761ef2dddb333.tar.gz
nx-libs-9aa33917623085260f85d766bf5761ef2dddb333.tar.bz2
nx-libs-9aa33917623085260f85d766bf5761ef2dddb333.zip
Handlers.c: make synchronize a Boolean variable
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Handlers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Handlers.c b/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
index cbe66cd90..d00b13d77 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
@@ -179,7 +179,7 @@ void nxagentBlockHandler(void * data, struct timeval **timeout, void * mask)
* Set if we need to synchronize any drawable.
*/
- static int synchronize;
+ static Bool synchronize;
#ifdef BLOCKS
fprintf(stderr, "[Begin block]\n");
@@ -302,7 +302,7 @@ void nxagentBlockHandler(void * data, struct timeval **timeout, void * mask)
* are synchronized.
*/
- if (synchronize == 1)
+ if (synchronize)
{
/*
* We should not enter the synchronization loop if there is any
@@ -350,7 +350,7 @@ void nxagentBlockHandler(void * data, struct timeval **timeout, void * mask)
nxagentCorruptedBackgrounds > 0 ||
nxagentCorruptedPixmaps > 0));
- if (!nxagentSkipImage && synchronize == 1)
+ if (!nxagentSkipImage && synchronize)
{
#ifdef TEST
fprintf(stderr, "nxagentBlockHandler: Setting a zero timeout with [%d][%d][%d] and "