diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2007-04-17 14:49:53 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2007-04-17 14:49:53 (GMT) |
commit | 7ab521d768effeec66e8d06abf0067ce0652a57f (patch) | |
tree | d38a0997ec4141e501a5f19512dfe1445d8c4404 /win | |
parent | 3943396d1d7a64194d6babf11bbf7db8ab76be16 (diff) | |
download | tcl-7ab521d768effeec66e8d06abf0067ce0652a57f.zip tcl-7ab521d768effeec66e8d06abf0067ce0652a57f.tar.gz tcl-7ab521d768effeec66e8d06abf0067ce0652a57f.tar.bz2 |
Eliminate use of (VOID*) casts when calling memset or memcpy.
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinFile.c | 6 | ||||
-rw-r--r-- | win/tclWinInit.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c index 4139dac..42e3ff8 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinFile.c,v 1.91 2007/02/20 15:36:47 patthoyts Exp $ + * RCS: @(#) $Id: tclWinFile.c,v 1.92 2007/04/17 14:49:53 dkf Exp $ */ /* #define _WIN32_WINNT 0x0500 */ @@ -3292,7 +3292,7 @@ TclNativeCreateNativeRep( } Tcl_DecrRefCount(validPathPtr); nativePathPtr = ckalloc((unsigned) len); - memcpy((VOID*)nativePathPtr, (VOID*)Tcl_DStringValue(&ds), (size_t) len); + memcpy(nativePathPtr, Tcl_DStringValue(&ds), (size_t) len); Tcl_DStringFree(&ds); return (ClientData)nativePathPtr; @@ -3341,7 +3341,7 @@ TclNativeDupInternalRep( } copy = (char *) ckalloc(len); - memcpy((VOID *) copy, (VOID *) clientData, len); + memcpy(copy, clientData, len); return (ClientData) copy; } diff --git a/win/tclWinInit.c b/win/tclWinInit.c index 93785b7..7824ebf 100644 --- a/win/tclWinInit.c +++ b/win/tclWinInit.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinInit.c,v 1.71 2006/04/05 17:25:27 vincentdarley Exp $ + * RCS: @(#) $Id: tclWinInit.c,v 1.72 2007/04/17 14:49:54 dkf Exp $ */ #include "tclWinInt.h" @@ -211,7 +211,7 @@ TclpInitLibraryPath( *encodingPtr = NULL; bytes = Tcl_GetStringFromObj(pathPtr, lengthPtr); *valuePtr = ckalloc((unsigned int)(*lengthPtr)+1); - memcpy((VOID *) *valuePtr, (VOID *) bytes, (size_t)(*lengthPtr)+1); + memcpy(*valuePtr, bytes, (size_t)(*lengthPtr)+1); Tcl_DecrRefCount(pathPtr); } @@ -359,7 +359,7 @@ InitializeDefaultLibraryDir( *lengthPtr = strlen(name); *valuePtr = ckalloc((unsigned int) *lengthPtr + 1); *encodingPtr = NULL; - memcpy((VOID *) *valuePtr, (VOID *) name, (size_t) *lengthPtr + 1); + memcpy(*valuePtr, name, (size_t) *lengthPtr + 1); } /* @@ -626,7 +626,7 @@ TclpFindVariable( length = strlen(name); nameUpper = (char *) ckalloc((unsigned) length+1); - memcpy((VOID *) nameUpper, (VOID *) name, (size_t) length+1); + memcpy(nameUpper, name, (size_t) length+1); Tcl_UtfToUpper(nameUpper); Tcl_DStringInit(&envString); |