summaryrefslogtreecommitdiffstats
path: root/generic/tclThreadTest.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-10-27 15:03:27 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-10-27 15:03:27 (GMT)
commitda07fbe0220630931595f469782262f84303e064 (patch)
treec10a662243d025ab2244121490014145d35d462b /generic/tclThreadTest.c
parentc0a807097346d519940330d1ed1ae11c4fe9af22 (diff)
downloadtcl-da07fbe0220630931595f469782262f84303e064.zip
tcl-da07fbe0220630931595f469782262f84303e064.tar.gz
tcl-da07fbe0220630931595f469782262f84303e064.tar.bz2
More C++-sentinel-related fixes (hopefully, those are the last ones)
Diffstat (limited to 'generic/tclThreadTest.c')
-rw-r--r--generic/tclThreadTest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tclThreadTest.c b/generic/tclThreadTest.c
index 99f9838..7b158b4 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, NULL);
+ Tcl_AppendResult(interp, "cannot join thread ", buf, (void *)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", NULL);
+ Tcl_AppendResult(interp, "can't create a new thread", (void *)NULL);
return TCL_ERROR;
}
@@ -819,7 +819,7 @@ ThreadSend(
}
if (!found) {
Tcl_MutexUnlock(&threadMutex);
- Tcl_AppendResult(interp, "invalid thread id", NULL);
+ Tcl_AppendResult(interp, "invalid thread id", (void *)NULL);
return TCL_ERROR;
}
@@ -921,7 +921,7 @@ ThreadSend(
ckfree(resultPtr->errorInfo);
}
}
- Tcl_AppendResult(interp, resultPtr->result, NULL);
+ Tcl_AppendResult(interp, resultPtr->result, (void *)NULL);
Tcl_ConditionFinalize(&resultPtr->done);
code = resultPtr->code;
@@ -972,7 +972,7 @@ ThreadCancel(
}
if (!found) {
Tcl_MutexUnlock(&threadMutex);
- Tcl_AppendResult(interp, "invalid thread id", NULL);
+ Tcl_AppendResult(interp, "invalid thread id", (void *)NULL);
return TCL_ERROR;
}