summaryrefslogtreecommitdiffstats
path: root/generic/tclThread.c
diff options
context:
space:
mode:
authorstanton <stanton>1998-11-11 04:54:06 (GMT)
committerstanton <stanton>1998-11-11 04:54:06 (GMT)
commitc0fd219230e4295c44743ad165a0d5a1c980b7dc (patch)
treeecdef91e34f72a712092b469a2a5ff861db47fb7 /generic/tclThread.c
parent131c68d85079ca5a553b28fef489cf29b79f1176 (diff)
downloadtcl-c0fd219230e4295c44743ad165a0d5a1c980b7dc.zip
tcl-c0fd219230e4295c44743ad165a0d5a1c980b7dc.tar.gz
tcl-c0fd219230e4295c44743ad165a0d5a1c980b7dc.tar.bz2
lots of lint
wrapped mutex declarations in ifdefs to avoid compiler warnings
Diffstat (limited to 'generic/tclThread.c')
-rw-r--r--generic/tclThread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclThread.c b/generic/tclThread.c
index a093824..14bb1ba 100644
--- a/generic/tclThread.c
+++ b/generic/tclThread.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: tclThread.c,v 1.1.2.2 1998/10/03 01:56:42 stanton Exp $
+ * RCS: @(#) $Id: tclThread.c,v 1.1.2.3 1998/11/11 04:54:20 stanton Exp $
*/
#include "tclInt.h"
@@ -127,8 +127,8 @@ Tcl_GetThreadData(keyPtr, size)
}
#else
if (*keyPtr == NULL) {
- result = (VOID *)ckalloc(size);
- memset((char *)result, 0, size);
+ result = (VOID *)ckalloc((size_t)size);
+ memset((char *)result, 0, (size_t)size);
*keyPtr = (Tcl_ThreadDataKey)result;
TclRememberDataKey(keyPtr);
}