[X2Go-Commits] [nx-libs] 37/108: Events.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 450760bcafc8d2a708b9f6087f3c0c2cdab046a8
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Mon Sep 24 21:49:23 2018 +0200

    Events.c: improve Bool usage
---
 nx-X11/programs/Xserver/hw/nxagent/Events.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c
index c0263cc..94480c4 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Events.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c
@@ -373,7 +373,7 @@ void nxagentRemoteWindowID(Window window, Bool newline)
     }
   }
 
-  if (newline == TRUE)
+  if (newline)
   {
     fprintf(stderr, "\n");
   }
@@ -411,7 +411,7 @@ void nxagentRemoteWindowInfo(Window win, int indent, Bool newLine)
                                  (attributes.override_redirect == 0) ?
                                      "No" : "Yes" );
 
-  if (newLine == TRUE)
+  if (newLine)
   {
     fprintf(stderr, "\n");
   }
@@ -537,7 +537,7 @@ void nxagentInternalWindowInfo(WindowPtr pWin, int indent, Bool newLine)
                                      (pWin -> overrideRedirect == 0) ?
                                          "No" : "Yes");
 
-  if (newLine == TRUE)
+  if (newLine)
   {
     fprintf(stderr, "\n");
   }
@@ -4061,8 +4061,7 @@ void nxagentHandleCollectPropertyEvent(XEvent *X)
       nxagentImportProperty(window, property, atomReturnType, resultFormat,
                                 ulReturnItems, ulReturnBytesLeft, pszReturnData);
     }
-
-    if (result == 0)
+    else
     {
       #ifdef DEBUG
       fprintf (stderr, "nxagentHandleCollectPropertyEvent: Failed to get reply data for client [%d].\n",

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