summaryrefslogtreecommitdiffstats
path: root/unix/tclSelectNotfy.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-20 13:14:26 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-20 13:14:26 (GMT)
commit6d093a49bdc100e9422cbde3980c3136f5989922 (patch)
treea58a10a709008a92c2bd3cb895fcfac27531c9be /unix/tclSelectNotfy.c
parent963276ee6d0ba32137fc09c691ffe93eda538e3e (diff)
downloadtcl-6d093a49bdc100e9422cbde3980c3136f5989922.zip
tcl-6d093a49bdc100e9422cbde3980c3136f5989922.tar.gz
tcl-6d093a49bdc100e9422cbde3980c3136f5989922.tar.bz2
(backport) more spacing/formatting tweaks. For now, macosx/unix/win only.
Diffstat (limited to 'unix/tclSelectNotfy.c')
-rw-r--r--unix/tclSelectNotfy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/unix/tclSelectNotfy.c b/unix/tclSelectNotfy.c
index fc77e77..e41cefa 100644
--- a/unix/tclSelectNotfy.c
+++ b/unix/tclSelectNotfy.c
@@ -32,7 +32,7 @@ typedef struct FileHandler {
* for this file. */
Tcl_FileProc *proc; /* Function to call, in the style of
* Tcl_CreateFileHandler. */
- ClientData clientData; /* Argument to pass to proc. */
+ void *clientData; /* Argument to pass to proc. */
struct FileHandler *nextPtr;/* Next in list of all files we care about. */
} FileHandler;
@@ -214,7 +214,7 @@ static sigset_t allSigMask;
*/
#if TCL_THREADS
-static TCL_NORETURN void NotifierThreadProc(ClientData clientData);
+static TCL_NORETURN void NotifierThreadProc(void *clientData);
#if defined(HAVE_PTHREAD_ATFORK)
static int atForkInit = 0;
static void AtForkChild(void);
@@ -480,7 +480,7 @@ TclpCreateFileHandler(
* called. */
Tcl_FileProc *proc, /* Function to call for each selected
* event. */
- ClientData clientData) /* Arbitrary data to pass to proc. */
+ void *clientData) /* Arbitrary data to pass to proc. */
{
ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey);
FileHandler *filePtr = LookUpFileHandler(tsdPtr, fd, NULL);
@@ -1115,12 +1115,12 @@ NotifierThreadProc(
tspecPtr->tv_nsec = timePtr->tv_usec * 1000;
}
ret = pselect(numFdBits, &readableMask, &writableMask,
- &exceptionMask, tspecPtr, &notifierSigMask);
+ &exceptionMask, tspecPtr, &notifierSigMask);
}
#else
pthread_sigmask(SIG_SETMASK, &notifierSigMask, NULL);
ret = select(numFdBits, &readableMask, &writableMask, &exceptionMask,
- timePtr);
+ timePtr);
pthread_sigmask(SIG_BLOCK, &allSigMask, NULL);
#endif