summaryrefslogtreecommitdiffstats
path: root/generic/tclThreadStorage.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2006-11-07 14:26:26 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2006-11-07 14:26:26 (GMT)
commit73f732ad32276e43c736124f1a53d1cea5b54668 (patch)
tree5fd73019d70d57115b4788979e147371a2b8aa9b /generic/tclThreadStorage.c
parent8872a28ce80804bfee1543badf58c7195cdfde67 (diff)
downloadtcl-73f732ad32276e43c736124f1a53d1cea5b54668.zip
tcl-73f732ad32276e43c736124f1a53d1cea5b54668.tar.gz
tcl-73f732ad32276e43c736124f1a53d1cea5b54668.tar.bz2
Minor updates (whitespace police, etc.)
Diffstat (limited to 'generic/tclThreadStorage.c')
-rw-r--r--generic/tclThreadStorage.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tclThreadStorage.c b/generic/tclThreadStorage.c
index 949b7a3..33db5a2 100644
--- a/generic/tclThreadStorage.c
+++ b/generic/tclThreadStorage.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclThreadStorage.c,v 1.9 2005/11/27 02:33:49 das Exp $
+ * RCS: @(#) $Id: tclThreadStorage.c,v 1.10 2006/11/07 14:26:26 dkf Exp $
*/
#include "tclInt.h"
@@ -135,7 +135,7 @@ AllocThreadStorageEntry(
Tcl_HashEntry *hPtr;
hPtr = (Tcl_HashEntry *) TclpSysAlloc(sizeof(Tcl_HashEntry), 0);
- hPtr->key.oneWordValue = (char *)keyPtr;
+ hPtr->key.oneWordValue = keyPtr;
return hPtr;
}
@@ -299,7 +299,7 @@ TclInitThreadStorage(void)
* We also initialize the cache.
*/
- memset((ThreadStorage *)&threadStorageCache, 0,
+ memset(&threadStorageCache, 0,
sizeof(ThreadStorage) * STORAGE_CACHE_SLOTS);
/*
@@ -338,7 +338,7 @@ TclpThreadDataKeyGet(
if (hPtr == NULL) {
return NULL;
}
- return (void *) Tcl_GetHashValue(hPtr);
+ return Tcl_GetHashValue(hPtr);
}
/*
@@ -529,7 +529,7 @@ TclFinalizeThreadStorage(void)
* Clear out the thread storage cache as well.
*/
- memset((ThreadStorage *)&threadStorageCache, 0,
+ memset(&threadStorageCache, 0,
sizeof(ThreadStorage) * STORAGE_CACHE_SLOTS);
/*