Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
67432ac2
Commit
67432ac2
authored
Sep 24, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
Oct 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Render.c: improve Bool usage
parent
f91f02d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Render.c
nx-X11/programs/Xserver/hw/nxagent/Render.c
+6
-6
No files found.
nx-X11/programs/Xserver/hw/nxagent/Render.c
View file @
67432ac2
...
@@ -2784,7 +2784,7 @@ void nxagentReconnectGlyphSet(void* p0, XID x1, void *p2)
...
@@ -2784,7 +2784,7 @@ void nxagentReconnectGlyphSet(void* p0, XID x1, void *p2)
Bool
nxagentReconnectAllGlyphSet
(
void
*
p
)
Bool
nxagentReconnectAllGlyphSet
(
void
*
p
)
{
{
Bool
success
=
T
RUE
;
Bool
success
=
T
rue
;
int
i
;
int
i
;
nxagentQueryFormats
();
nxagentQueryFormats
();
...
@@ -2826,7 +2826,7 @@ void nxagentReconnectPicture(void * p0, XID x1, void *p2)
...
@@ -2826,7 +2826,7 @@ void nxagentReconnectPicture(void * p0, XID x1, void *p2)
* and that the involved objects are valid.
* and that the involved objects are valid.
*/
*/
if
(
*
pBool
==
0
||
pPicture
==
NULL
||
if
(
!*
pBool
||
pPicture
==
NULL
||
nxagentPicture
(
pPicture
)
!=
0
)
nxagentPicture
(
pPicture
)
!=
0
)
{
{
return
;
return
;
...
@@ -2959,7 +2959,7 @@ Bool nxagentReconnectAllPicture(void *p)
...
@@ -2959,7 +2959,7 @@ Bool nxagentReconnectAllPicture(void *p)
fprintf
(
stderr
,
"nxagentReconnectAllPicture: Going to recreate all pictures.
\n
"
);
fprintf
(
stderr
,
"nxagentReconnectAllPicture: Going to recreate all pictures.
\n
"
);
#endif
#endif
for
(
i
=
0
,
r
=
1
;
i
<
MAXCLIENTS
;
i
++
)
for
(
i
=
0
,
r
=
True
;
i
<
MAXCLIENTS
;
i
++
)
{
{
if
(
clients
[
i
])
if
(
clients
[
i
])
{
{
...
@@ -2967,7 +2967,7 @@ Bool nxagentReconnectAllPicture(void *p)
...
@@ -2967,7 +2967,7 @@ Bool nxagentReconnectAllPicture(void *p)
#ifdef WARNING
#ifdef WARNING
if
(
r
==
False
)
if
(
!
r
)
{
{
fprintf
(
stderr
,
"nxagentReconnectAllPicture: WARNING! Failed to recreate "
fprintf
(
stderr
,
"nxagentReconnectAllPicture: WARNING! Failed to recreate "
"picture for client [%d].
\n
"
,
i
);
"picture for client [%d].
\n
"
,
i
);
...
@@ -3015,7 +3015,7 @@ Bool nxagentDisconnectAllPicture(void)
...
@@ -3015,7 +3015,7 @@ Bool nxagentDisconnectAllPicture(void)
fprintf
(
stderr
,
"nxagentDisconnectAllPicture.
\n
"
);
fprintf
(
stderr
,
"nxagentDisconnectAllPicture.
\n
"
);
#endif
#endif
for
(
i
=
0
,
r
=
1
;
i
<
MAXCLIENTS
;
i
++
)
for
(
i
=
0
,
r
=
True
;
i
<
MAXCLIENTS
;
i
++
)
{
{
if
(
clients
[
i
])
if
(
clients
[
i
])
{
{
...
@@ -3023,7 +3023,7 @@ Bool nxagentDisconnectAllPicture(void)
...
@@ -3023,7 +3023,7 @@ Bool nxagentDisconnectAllPicture(void)
#ifdef WARNING
#ifdef WARNING
if
(
r
==
False
)
if
(
!
r
)
{
{
fprintf
(
stderr
,
"nxagentDisconnectAllPicture: WARNING! Failed to disconnect "
fprintf
(
stderr
,
"nxagentDisconnectAllPicture: WARNING! Failed to disconnect "
"picture for client [%d].
\n
"
,
i
);
"picture for client [%d].
\n
"
,
i
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment