Avoid "bool" variable name

C23 has a type of that name.
This commit is contained in:
Patrick Georgi
2025-09-19 00:08:50 +02:00
parent 4d41663c58
commit c0ad5170c9
4 changed files with 16 additions and 17 deletions

View File

@@ -110,7 +110,7 @@ myDtChkpntMsgSend(char *message, char *type)
struct timezone time_zone;
XTextProperty tp;
Status status;
Bool bool;
Bool hasEvent;
XEvent event;
/* Check to see if checkpoint is actually on */
@@ -153,9 +153,9 @@ myDtChkpntMsgSend(char *message, char *type)
timestamp = oldtime;
}
else { /* Check event queue */
bool = XCheckIfEvent(dtcp_info.display, &event,
hasEvent = XCheckIfEvent(dtcp_info.display, &event,
myCheckClientEvent, NULL);
if (bool == True) {
if (hasEvent == True) {
if (event.type == PropertyNotify)
timestamp = event.xproperty.time;
else timestamp = event.xselection.time;
@@ -190,12 +190,12 @@ myDtChkpntMsgSend(char *message, char *type)
*/
oldtime = INVALID_TIME;
do {
bool = XCheckIfEvent(dtcp_info.display, &event,
hasEvent = XCheckIfEvent(dtcp_info.display, &event,
myCheckClientEvent, NULL);
if (event.type == PropertyNotify) /* Save timestamp for recycling */
oldtime = event.xproperty.time;
else oldtime = event.xselection.time;
} while(bool == True);
} while(hasEvent == True);
/*
* Increment the property and message counters

View File

@@ -158,7 +158,7 @@ static Bool myCheckSelectionEvent(Display *display, XEvent *event, char *args)
Bool _DtPerfChkpntMsgReceive(DtChkpntMsg *dtcp_msg, Bool bBlock)
{
XEvent event;
Bool bool=True;
Bool hasEvent=True;
XTextProperty tp;
int i;
static char **Stringlist;
@@ -178,10 +178,10 @@ Bool _DtPerfChkpntMsgReceive(DtChkpntMsg *dtcp_msg, Bool bBlock)
if (bBlock == True)
XIfEvent(dtsvc_info.display, &event, myCheckSelectionEvent, NULL);
else
bool = XCheckIfEvent(dtsvc_info.display, &event,
hasEvent = XCheckIfEvent(dtsvc_info.display, &event,
myCheckSelectionEvent, NULL);
if (bool == True) {
if (hasEvent == True) {
switch (event.type) {
case SelectionRequest: /* Message received from a client */
/* Is this a Checkpoint request ?*/
@@ -213,10 +213,10 @@ Bool _DtPerfChkpntMsgReceive(DtChkpntMsg *dtcp_msg, Bool bBlock)
case SelectionClear: /* We no longer own the selection */
default:
fprintf(stderr,"\t** Chkpnt listener: Warning - loss of Selection ownership **\n");
bool = False;
hasEvent = False;
break;
}
}
_DtSvcProcessUnlock();
return(bool);
return(hasEvent);
}