aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-09-24 21:49:23 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-10-22 14:34:28 +0200
commit450760bcafc8d2a708b9f6087f3c0c2cdab046a8 (patch)
treee2f5a8fc5b50ed8eeeb018ffb7051f888b7dd5f1
parent7f7895ee5674bf2bd507632408432cd5bd7090e3 (diff)
downloadnx-libs-450760bcafc8d2a708b9f6087f3c0c2cdab046a8.tar.gz
nx-libs-450760bcafc8d2a708b9f6087f3c0c2cdab046a8.tar.bz2
nx-libs-450760bcafc8d2a708b9f6087f3c0c2cdab046a8.zip
Events.c: improve Bool usage
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Events.c9
1 files 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 c0263cc81..94480c45c 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",