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 /unix/tclUnixTime.c | |
| 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 'unix/tclUnixTime.c')
| -rw-r--r-- | unix/tclUnixTime.c | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c index 660a831..d4f2067 100644 --- a/unix/tclUnixTime.c +++ b/unix/tclUnixTime.c @@ -9,7 +9,7 @@   * See the file "license.terms" for information on usage and redistribution of   * this file, and for a DISCLAIMER OF ALL WARRANTIES.   * - * RCS: @(#) $Id: tclUnixTime.c,v 1.29 2007/04/16 13:36:36 dkf Exp $ + * RCS: @(#) $Id: tclUnixTime.c,v 1.30 2007/04/17 14:49:53 dkf Exp $   */  #include "tclInt.h" @@ -428,8 +428,7 @@ TclpGmtime(      gmtime_r(timePtr, &(tsdPtr->gmtime_buf));  #else      Tcl_MutexLock(&tmMutex); -    memcpy((VOID *) &(tsdPtr->gmtime_buf), (VOID *) gmtime(timePtr), -	    sizeof(struct tm)); +    memcpy(&(tsdPtr->gmtime_buf), gmtime(timePtr), sizeof(struct tm));      Tcl_MutexUnlock(&tmMutex);  #endif @@ -480,8 +479,7 @@ TclpLocaltime(      localtime_r(timePtr, &(tsdPtr->localtime_buf));  #else      Tcl_MutexLock(&tmMutex); -    memcpy((VOID *) &(tsdPtr->localtime_buf), (VOID *) localtime(timePtr), -	    sizeof(struct tm)); +    memcpy(&(tsdPtr->localtime_buf), localtime(timePtr), sizeof(struct tm));      Tcl_MutexUnlock(&tmMutex);  #endif | 
