[X2Go-Commits] [nx-libs] 147/429: Client.c: cleanup Boolean handling for nxagentNeedWakeup*() macros
git-admin at x2go.org
git-admin at x2go.org
Mon Oct 18 09:36:20 CEST 2021
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit ab83e4688b5787cad652f7d47092813e687161d7
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Thu Dec 31 00:38:07 2020 +0100
Client.c: cleanup Boolean handling for nxagentNeedWakeup*() macros
---
nx-X11/programs/Xserver/hw/nxagent/Client.c | 12 ++++++------
1 file 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;
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list