diff options
Diffstat (limited to 'generic/tclThread.c')
-rw-r--r-- | generic/tclThread.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tclThread.c b/generic/tclThread.c index c5def48..9372d78 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.14 2005/11/02 11:55:47 dkf Exp $ + * RCS: @(#) $Id: tclThread.c,v 1.15 2006/11/07 14:26:26 dkf Exp $ */ #include "tclInt.h" @@ -87,14 +87,14 @@ Tcl_GetThreadData( result = TclpThreadDataKeyGet(keyPtr); if (result == NULL) { - result = (void *) ckalloc((size_t) size); + result = ckalloc((size_t) size); memset(result, 0, (size_t) size); TclpThreadDataKeySet(keyPtr, result); } #else /* TCL_THREADS */ if (*keyPtr == NULL) { - result = (void *) ckalloc((size_t) size); - memset((char *) result, 0, (size_t) size); + result = ckalloc((size_t) size); + memset(result, 0, (size_t) size); *keyPtr = (Tcl_ThreadDataKey)result; RememberSyncObject((char *) keyPtr, &keyRecord); } @@ -126,10 +126,10 @@ TclThreadDataKeyGet( * (pthread_key_t **) */ { #ifdef TCL_THREADS - return (void *) TclpThreadDataKeyGet(keyPtr); + return TclpThreadDataKeyGet(keyPtr); #else /* TCL_THREADS */ char *result = *(char **) keyPtr; - return (void *) result; + return result; #endif /* TCL_THREADS */ } @@ -358,7 +358,7 @@ void TclFinalizeSynchronization(void) { #ifdef TCL_THREADS - void* blockPtr; + void *blockPtr; Tcl_ThreadDataKey *keyPtr; Tcl_Mutex *mutexPtr; Tcl_Condition *condPtr; |