summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-11-16 11:17:26 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-11-16 11:17:26 (GMT)
commit7ac80cab9e7494b78ed8010a98bd096e83cd5955 (patch)
treefaf73bb4aa4dbfcaf72742a7e51b568cb341db1c /unix/tclUnixThrd.c
parentf14f5f82187f59df377d861dfc7c2e06b3d0c66c (diff)
downloadtcl-7ac80cab9e7494b78ed8010a98bd096e83cd5955.zip
tcl-7ac80cab9e7494b78ed8010a98bd096e83cd5955.tar.gz
tcl-7ac80cab9e7494b78ed8010a98bd096e83cd5955.tar.bz2
Silence some warnings.
Diffstat (limited to 'unix/tclUnixThrd.c')
-rw-r--r--unix/tclUnixThrd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index 5f4f15c..cb206f9 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixThrd.c,v 1.52 2007/05/29 23:35:06 hobbs Exp $
+ * RCS: @(#) $Id: tclUnixThrd.c,v 1.53 2007/11/16 11:17:28 dkf Exp $
*/
#include "tclInt.h"
@@ -157,14 +157,14 @@ int
Tcl_JoinThread(
Tcl_ThreadId threadId, /* Id of the thread to wait upon. */
int *state) /* Reference to the storage the result of the
- * thread we wait upon will be written
- * into. May be NULL. */
+ * thread we wait upon will be written into.
+ * May be NULL. */
{
#ifdef TCL_THREADS
int result;
- unsigned long retcode;
+ unsigned long retcode, *retcodePtr = &retcode;
- result = pthread_join((pthread_t) threadId, (void**) &retcode);
+ result = pthread_join((pthread_t) threadId, (void**) retcodePtr);
if (state) {
*state = (int) retcode;
}