summaryrefslogtreecommitdiffstats
path: root/unix/tclXtNotify.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2021-04-03 11:09:47 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2021-04-03 11:09:47 (GMT)
commit743881d3ce722dbba89ec98a6f5a9618e683bbf1 (patch)
tree0248bd8acf2fac9dfed09af1cc6ca4717fe0a88b /unix/tclXtNotify.c
parentd1bd0f28efd01c9832cbc0b0c5b87ee82badd8b7 (diff)
parent3628bed3baaae83cb1812e0e2250514376dd8d07 (diff)
downloadtcl-743881d3ce722dbba89ec98a6f5a9618e683bbf1.zip
tcl-743881d3ce722dbba89ec98a6f5a9618e683bbf1.tar.gz
tcl-743881d3ce722dbba89ec98a6f5a9618e683bbf1.tar.bz2
Clean up the notifier code to not spread the hooks quite so widely
Diffstat (limited to 'unix/tclXtNotify.c')
-rw-r--r--unix/tclXtNotify.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclXtNotify.c b/unix/tclXtNotify.c
index 68ee578..3d90135 100644
--- a/unix/tclXtNotify.c
+++ b/unix/tclXtNotify.c
@@ -132,7 +132,7 @@ TclSetAppContext(
* after initialization, so we panic.
*/
- Tcl_Panic("TclSetAppContext: multiple application contexts");
+ Tcl_Panic("TclSetAppContext: multiple application contexts");
}
} else {
/*
@@ -359,7 +359,7 @@ CreateFileHandler(
}
}
if (filePtr == NULL) {
- filePtr = (FileHandler *)ckalloc(sizeof(FileHandler));
+ filePtr = (FileHandler *) ckalloc(sizeof(FileHandler));
filePtr->fd = fd;
filePtr->read = 0;
filePtr->write = 0;
@@ -496,7 +496,7 @@ FileProc(
int *fd,
XtInputId *id)
{
- FileHandler *filePtr = (FileHandler *)clientData;
+ FileHandler *filePtr = (FileHandler *) clientData;
FileHandlerEvent *fileEvPtr;
int mask = 0;
@@ -525,7 +525,7 @@ FileProc(
*/
filePtr->readyMask |= mask;
- fileEvPtr = (FileHandlerEvent *)ckalloc(sizeof(FileHandlerEvent));
+ fileEvPtr = (FileHandlerEvent *) ckalloc(sizeof(FileHandlerEvent));
fileEvPtr->header.proc = FileHandlerEventProc;
fileEvPtr->fd = filePtr->fd;
Tcl_QueueEvent((Tcl_Event *) fileEvPtr, TCL_QUEUE_TAIL);