diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2011-03-12 15:06:47 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2011-03-12 15:06:47 (GMT) |
| commit | da07e275b37faecb755a5d1cd6e55bf5dced5b6e (patch) | |
| tree | ed891ab3e00ea5888426f25d675aff2d89a00b1d /unix/tclUnixInit.c | |
| parent | cc586c9ab635695477a2735f73aa166f4ecb4a5e (diff) | |
| download | tcl-da07e275b37faecb755a5d1cd6e55bf5dced5b6e.zip tcl-da07e275b37faecb755a5d1cd6e55bf5dced5b6e.tar.gz tcl-da07e275b37faecb755a5d1cd6e55bf5dced5b6e.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.
Diffstat (limited to 'unix/tclUnixInit.c')
| -rw-r--r-- | unix/tclUnixInit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c index 7bbdc5c..8f872d5 100644 --- a/unix/tclUnixInit.c +++ b/unix/tclUnixInit.c @@ -473,7 +473,7 @@ TclpInitLibraryPath( Tcl_ListObjAppendElement(NULL, pathPtr, objPtr); Tcl_DStringFree(&ds); } - ckfree((char *) pathv); + ckfree(pathv); } /* @@ -506,7 +506,7 @@ TclpInitLibraryPath( *encodingPtr = Tcl_GetEncoding(NULL, NULL); str = Tcl_GetStringFromObj(pathPtr, lengthPtr); - *valuePtr = ckalloc((unsigned int) (*lengthPtr)+1); + *valuePtr = ckalloc((*lengthPtr) + 1); memcpy(*valuePtr, str, (size_t)(*lengthPtr)+1); Tcl_DecrRefCount(pathPtr); } |
