diff options
author | donal.k.fellows@manchester.ac.uk <dkf> | 2007-04-17 14:49:53 (GMT) |
---|---|---|
committer | donal.k.fellows@manchester.ac.uk <dkf> | 2007-04-17 14:49:53 (GMT) |
commit | ad29ab45138e0e5bbb5103e155dc129d5fd29581 (patch) | |
tree | d38a0997ec4141e501a5f19512dfe1445d8c4404 /unix/tclUnixInit.c | |
parent | 61016d0589b2d170dc3e95ececb63dfa7477d377 (diff) | |
download | tcl-ad29ab45138e0e5bbb5103e155dc129d5fd29581.zip tcl-ad29ab45138e0e5bbb5103e155dc129d5fd29581.tar.gz tcl-ad29ab45138e0e5bbb5103e155dc129d5fd29581.tar.bz2 |
Eliminate use of (VOID*) casts when calling memset or memcpy.
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 3568bd6..854624f 100644 --- a/unix/tclUnixInit.c +++ b/unix/tclUnixInit.c @@ -7,7 +7,7 @@ * Copyright (c) 1999 by Scriptics Corporation. * All rights reserved. * - * RCS: @(#) $Id: tclUnixInit.c,v 1.68 2007/02/08 23:11:21 hobbs Exp $ + * RCS: @(#) $Id: tclUnixInit.c,v 1.69 2007/04/17 14:49:53 dkf Exp $ */ #include "tclInt.h" @@ -560,7 +560,7 @@ TclpInitLibraryPath( *encodingPtr = Tcl_GetEncoding(NULL, NULL); str = Tcl_GetStringFromObj(pathPtr, lengthPtr); *valuePtr = ckalloc((unsigned int) (*lengthPtr)+1); - memcpy((VOID *) *valuePtr, (VOID *) str, (size_t)(*lengthPtr)+1); + memcpy(*valuePtr, str, (size_t)(*lengthPtr)+1); Tcl_DecrRefCount(pathPtr); } |