[X2Go-Commits] [nx-libs] 33/108: Render.c: improve Bool usage

git-admin at x2go.org git-admin at x2go.org
Fri Nov 9 20:35:38 CET 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository nx-libs.

commit 67432ac25901bd56a13a3c8885be796f39918880
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Mon Sep 24 21:24:49 2018 +0200

    Render.c: improve Bool usage
---
 nx-X11/programs/Xserver/hw/nxagent/Render.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/nx-X11/programs/Xserver/hw/nxagent/Render.c b/nx-X11/programs/Xserver/hw/nxagent/Render.c
index b58a16f..9d91b1f 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Render.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Render.c
@@ -2784,7 +2784,7 @@ void nxagentReconnectGlyphSet(void* p0, XID x1, void *p2)
 
 Bool nxagentReconnectAllGlyphSet(void *p)
 {
-  Bool success = TRUE;
+  Bool success = True;
   int i;
 
   nxagentQueryFormats();
@@ -2826,7 +2826,7 @@ void nxagentReconnectPicture(void * p0, XID x1, void *p2)
    * and that the involved objects are valid.
    */
 
-  if (*pBool == 0 || pPicture == NULL ||
+  if (!*pBool || pPicture == NULL ||
           nxagentPicture(pPicture) != 0)
   {
     return;
@@ -2959,7 +2959,7 @@ Bool nxagentReconnectAllPicture(void *p)
   fprintf(stderr, "nxagentReconnectAllPicture: Going to recreate all pictures.\n");
   #endif
 
-  for (i = 0, r = 1; i < MAXCLIENTS; i++)
+  for (i = 0, r = True; i < MAXCLIENTS; i++)
   {
     if (clients[i])
     {
@@ -2967,7 +2967,7 @@ Bool nxagentReconnectAllPicture(void *p)
 
       #ifdef WARNING
 
-      if (r == False)
+      if (!r)
       {
         fprintf(stderr, "nxagentReconnectAllPicture: WARNING! Failed to recreate "
                     "picture for client [%d].\n", i);
@@ -3015,7 +3015,7 @@ Bool nxagentDisconnectAllPicture(void)
   fprintf(stderr, "nxagentDisconnectAllPicture.\n");
   #endif
 
-  for (i = 0, r = 1; i < MAXCLIENTS; i++)
+  for (i = 0, r = True; i < MAXCLIENTS; i++)
   {
     if (clients[i])
     {
@@ -3023,7 +3023,7 @@ Bool nxagentDisconnectAllPicture(void)
 
       #ifdef WARNING
 
-      if (r == False)
+      if (!r)
       {
         fprintf(stderr, "nxagentDisconnectAllPicture: WARNING! Failed to disconnect "
                     "picture for client [%d].\n", i);

--
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