aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Client.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-12-31 00:38:07 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 16:26:31 +0100
commit54dd29cc6d65789971cf878dd2bb8c29eec242ee (patch)
tree3bec32761e11aadb44aaf71c19c3384c639f3b7b /nx-X11/programs/Xserver/hw/nxagent/Client.c
parent2ce0fa8f07bf297dd063c5665a6ebaf6bb37ab13 (diff)
downloadnx-libs-54dd29cc6d65789971cf878dd2bb8c29eec242ee.tar.gz
nx-libs-54dd29cc6d65789971cf878dd2bb8c29eec242ee.tar.bz2
nx-libs-54dd29cc6d65789971cf878dd2bb8c29eec242ee.zip
Client.c: cleanup Boolean handling for nxagentNeedWakeup*() macros
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Client.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Client.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Client.c b/nx-X11/programs/Xserver/hw/nxagent/Client.c
index e0adef3bc..08b2d8feb 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Client.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Client.c
@@ -457,7 +457,7 @@ void nxagentWaitWakeupBySplit(ClientPtr client)
{
#ifdef TEST
- if (nxagentNeedWakeupBySplit(client) == 0)
+ if (!nxagentNeedWakeupBySplit(client))
{
fprintf(stderr, "++++++nxagentWaitWakeupBySplit: WARNING! The client [%d] is already awake.\n",
client -> index);
@@ -497,12 +497,12 @@ void nxagentWaitWakeupBySplit(ClientPtr client)
#endif
- if (nxagentNeedWakeupBySplit(client) == 0 ||
+ if (!nxagentNeedWakeupBySplit(client) ||
NXDisplayError(nxagentDisplay) == 1)
{
#ifdef TEST
- if (nxagentNeedWakeupBySplit(client) == 0)
+ if (!nxagentNeedWakeupBySplit(client))
{
fprintf(stderr, "++++++nxagentWaitWakeupBySplit: Client [%d] can now run.\n",
client -> index);
@@ -535,7 +535,7 @@ FIXME: Should record a serial number for the client, so that the
*/
if (client -> index < MAX_CONNECTIONS)
{
- if (nxagentNeedWakeup(client) == 0)
+ if (!nxagentNeedWakeup(client))
{
#ifdef TEST
fprintf(stderr, "++++++nxagentSuspendBySplit: Suspending client [%d] with agent sequence [%ld].\n",
@@ -583,7 +583,7 @@ FIXME: Should record a serial number for the client, so that the
{
nxagentClientPriv(client) -> clientState &= ~SleepingBySplit;
- if (nxagentNeedWakeup(client) == 0)
+ if (!nxagentNeedWakeup(client))
{
#ifdef TEST
fprintf(stderr, "++++++nxagentWakeupBySplit: Resuming client [%d] with agent sequence [%ld].\n",
@@ -629,7 +629,7 @@ void nxagentCheckRestartedClients(struct timeval **timeout)
for (int i = 1; i < currentMaxClients; i++)
{
if (clients[i] != NULL && clients[i] -> osPrivate != NULL &&
- nxagentNeedWakeup(clients[i]) == 0)
+ !nxagentNeedWakeup(clients[i]))
{
int fd = ((OsCommPtr) clients[i] -> osPrivate) -> fd;