Commit f91f02d9 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Pixmap.c: use some Bools as Bools not integers

parent 1a8c4532
...@@ -860,10 +860,10 @@ void nxagentReconnectPixmap(void *p0, XID x1, void *p2) ...@@ -860,10 +860,10 @@ void nxagentReconnectPixmap(void *p0, XID x1, void *p2)
Bool *pBool = (Bool*) p2; Bool *pBool = (Bool*) p2;
nxagentPrivPixmapPtr pPixmapPriv; nxagentPrivPixmapPtr pPixmapPriv;
if (*pBool == 0 || pPixmap == NULL || if (!*pBool || pPixmap == NULL ||
NXDisplayError(nxagentDisplay) == 1) NXDisplayError(nxagentDisplay) == 1)
{ {
*pBool = 0; *pBool = False;
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentReconnectPixmap: Ignoring pixmap at [%p] while " fprintf(stderr, "nxagentReconnectPixmap: Ignoring pixmap at [%p] while "
...@@ -929,7 +929,7 @@ void nxagentReconnectPixmap(void *p0, XID x1, void *p2) ...@@ -929,7 +929,7 @@ void nxagentReconnectPixmap(void *p0, XID x1, void *p2)
nxagentSplitTrap = 0; nxagentSplitTrap = 0;
if (*pBool == 0) if (!*pBool)
{ {
#ifdef PANIC #ifdef PANIC
fprintf(stderr, "nxagentReconnectPixmap: PANIC! Failed to synchronize the pixmap.\n"); fprintf(stderr, "nxagentReconnectPixmap: PANIC! Failed to synchronize the pixmap.\n");
...@@ -1035,7 +1035,7 @@ static void nxagentCheckOnePixmapIntegrity(void *p0, XID x1, void *p2) ...@@ -1035,7 +1035,7 @@ static void nxagentCheckOnePixmapIntegrity(void *p0, XID x1, void *p2)
PixmapPtr pPixmap = (PixmapPtr) p0; PixmapPtr pPixmap = (PixmapPtr) p0;
Bool *pBool = (Bool*) p2; Bool *pBool = (Bool*) p2;
if (*pBool == False) if (!*pBool)
{ {
return; return;
} }
...@@ -1065,7 +1065,7 @@ static void nxagentCheckOnePixmapIntegrity(void *p0, XID x1, void *p2) ...@@ -1065,7 +1065,7 @@ static void nxagentCheckOnePixmapIntegrity(void *p0, XID x1, void *p2)
Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap) Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap)
{ {
Bool integrity = 1; Bool integrity = True;
XImage *image; XImage *image;
char *data; char *data;
int format; int format;
...@@ -1121,11 +1121,11 @@ Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap) ...@@ -1121,11 +1121,11 @@ Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap)
if (image != NULL && memcmp(image -> data, data, length) != 0) if (image != NULL && memcmp(image -> data, data, length) != 0)
{ {
integrity = 0; integrity = False;
} }
else else
{ {
integrity = 1; integrity = True;
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentCheckPixmapIntegrity: Pixmap at [%p] has been realized. " fprintf(stderr, "nxagentCheckPixmapIntegrity: Pixmap at [%p] has been realized. "
...@@ -1135,7 +1135,7 @@ Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap) ...@@ -1135,7 +1135,7 @@ Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap)
#ifdef WARNING #ifdef WARNING
if (integrity == 0) if (!integrity)
{ {
int i; int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment