summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2011-03-12 15:06:47 (GMT)
committerdkf <dkf@noemail.net>2011-03-12 15:06:47 (GMT)
commitdd3a8a349837409f90ccabcc9aef092197d4da6f (patch)
treeed891ab3e00ea5888426f25d675aff2d89a00b1d /generic/tclFileName.c
parent3bc57329cfbbd1026bf237979f491e7336f26c15 (diff)
downloadtcl-dd3a8a349837409f90ccabcc9aef092197d4da6f.zip
tcl-dd3a8a349837409f90ccabcc9aef092197d4da6f.tar.gz
tcl-dd3a8a349837409f90ccabcc9aef092197d4da6f.tar.bz2
Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts in
rest of Tcl source code. No ABI change. API change *should* be harmless. FossilOrigin-Name: 5574bdd262b2672cde48771787370c12854cecf4
Diffstat (limited to 'generic/tclFileName.c')
-rw-r--r--generic/tclFileName.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index df67176..d53c271 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.c
@@ -577,8 +577,7 @@ Tcl_SplitPath(
* plus the argv pointers and the terminating NULL pointer.
*/
- *argvPtr = (const char **) ckalloc((unsigned)
- ((((*argcPtr) + 1) * sizeof(char *)) + size));
+ *argvPtr = ckalloc((((*argcPtr) + 1) * sizeof(char *)) + size);
/*
* Position p after the last argv pointer and copy the contents of the
@@ -2568,7 +2567,7 @@ DoGlob(
Tcl_StatBuf *
Tcl_AllocStatBuf(void)
{
- return (Tcl_StatBuf *) ckalloc(sizeof(Tcl_StatBuf));
+ return ckalloc(sizeof(Tcl_StatBuf));
}
/*