diff options
author | nijtmans <nijtmans> | 2010-08-22 18:53:25 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-08-22 18:53:25 (GMT) |
commit | b29ec318d79701d5f1a59dda0b4517e2a91d4aa4 (patch) | |
tree | 67ed82232eba8af871d2080941a2d38f2764b518 /generic/tclEncoding.c | |
parent | 83ab4a9db5c51f901442c409a6d33709ab4c223b (diff) | |
download | tcl-b29ec318d79701d5f1a59dda0b4517e2a91d4aa4.zip tcl-b29ec318d79701d5f1a59dda0b4517e2a91d4aa4.tar.gz tcl-b29ec318d79701d5f1a59dda0b4517e2a91d4aa4.tar.bz2 |
Remove many type casts which are no longernecessary as a result of [Patch 3009403]: Signature of Tcl_GetHashKey, Tcl_(Create|Find)HashEntry
Diffstat (limited to 'generic/tclEncoding.c')
-rw-r--r-- | generic/tclEncoding.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c index 07e62aa..a9d60ff 100644 --- a/generic/tclEncoding.c +++ b/generic/tclEncoding.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: tclEncoding.c,v 1.70 2010/02/24 10:32:17 dkf Exp $ + * RCS: @(#) $Id: tclEncoding.c,v 1.71 2010/08/22 18:53:26 nijtmans Exp $ */ #include "tclInt.h" @@ -776,7 +776,7 @@ Tcl_GetEncoding( hPtr = Tcl_FindHashEntry(&encodingTable, name); if (hPtr != NULL) { - encodingPtr = (Encoding *) Tcl_GetHashValue(hPtr); + encodingPtr = Tcl_GetHashValue(hPtr); encodingPtr->refCount++; Tcl_MutexUnlock(&encodingMutex); return (Tcl_Encoding) encodingPtr; @@ -925,7 +925,7 @@ Tcl_GetEncodingNames( Encoding *encodingPtr = Tcl_GetHashValue(hPtr); Tcl_CreateHashEntry(&table, - (char *) Tcl_NewStringObj(encodingPtr->name, -1), &dummy); + Tcl_NewStringObj(encodingPtr->name, -1), &dummy); } Tcl_MutexUnlock(&encodingMutex); @@ -938,7 +938,7 @@ Tcl_GetEncodingNames( Tcl_DictObjFirst(NULL, map, &mapSearch, &name, NULL, &done); for (; !done; Tcl_DictObjNext(&mapSearch, &name, NULL, &done)) { - Tcl_CreateHashEntry(&table, (char *) name, &dummy); + Tcl_CreateHashEntry(&table, name, &dummy); } /* |