summaryrefslogtreecommitdiffstats
path: root/generic/tclThreadTest.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-27 21:04:39 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-27 21:04:39 (GMT)
commitb727df70e6804bf6a51a40e69cde2ff1a61ce570 (patch)
treea1a470de893f0f36bb2bf0b879c9e3689876e5a1 /generic/tclThreadTest.c
parentf8c457b80f302a4587d875329a789e0906b13989 (diff)
parent34acc36d873d6b1ec6a8cd505af4491dfad7fd57 (diff)
downloadtcl-b727df70e6804bf6a51a40e69cde2ff1a61ce570.zip
tcl-b727df70e6804bf6a51a40e69cde2ff1a61ce570.tar.gz
tcl-b727df70e6804bf6a51a40e69cde2ff1a61ce570.tar.bz2
Another round of sentinel improvements
Diffstat (limited to 'generic/tclThreadTest.c')
-rw-r--r--generic/tclThreadTest.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclThreadTest.c b/generic/tclThreadTest.c
index cd74071..d74be9e 100644
--- a/generic/tclThreadTest.c
+++ b/generic/tclThreadTest.c
@@ -370,7 +370,7 @@ ThreadObjCmd(
char buf[TCL_INTEGER_SPACE];
snprintf(buf, sizeof(buf), "%" TCL_LL_MODIFIER "d", (long long)id);
- Tcl_AppendResult(interp, "cannot join thread ", buf, (void *)NULL);
+ Tcl_AppendResult(interp, "cannot join thread ", buf, (char *)NULL);
}
return result;
}
@@ -508,7 +508,7 @@ ThreadCreate(
if (Tcl_CreateThread(&id, NewTestThread, &ctrl,
TCL_THREAD_STACK_DEFAULT, joinable) != TCL_OK) {
Tcl_MutexUnlock(&threadMutex);
- Tcl_AppendResult(interp, "can't create a new thread", (void *)NULL);
+ Tcl_AppendResult(interp, "can't create a new thread", (char *)NULL);
return TCL_ERROR;
}
@@ -819,7 +819,7 @@ ThreadSend(
}
if (!found) {
Tcl_MutexUnlock(&threadMutex);
- Tcl_AppendResult(interp, "invalid thread id", (void *)NULL);
+ Tcl_AppendResult(interp, "invalid thread id", (char *)NULL);
return TCL_ERROR;
}
@@ -913,7 +913,7 @@ ThreadSend(
if (resultPtr->code != TCL_OK) {
if (resultPtr->errorCode) {
- Tcl_SetErrorCode(interp, resultPtr->errorCode, (void *)NULL);
+ Tcl_SetErrorCode(interp, resultPtr->errorCode, (char *)NULL);
ckfree(resultPtr->errorCode);
}
if (resultPtr->errorInfo) {
@@ -921,7 +921,7 @@ ThreadSend(
ckfree(resultPtr->errorInfo);
}
}
- Tcl_AppendResult(interp, resultPtr->result, (void *)NULL);
+ Tcl_AppendResult(interp, resultPtr->result, (char *)NULL);
Tcl_ConditionFinalize(&resultPtr->done);
code = resultPtr->code;
@@ -972,7 +972,7 @@ ThreadCancel(
}
if (!found) {
Tcl_MutexUnlock(&threadMutex);
- Tcl_AppendResult(interp, "invalid thread id", (void *)NULL);
+ Tcl_AppendResult(interp, "invalid thread id", (char *)NULL);
return TCL_ERROR;
}