diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2007-04-17 14:36:49 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2007-04-17 14:36:49 (GMT) |
commit | 71807b8a629a1628286b5dd2858f0e3df2ada2fa (patch) | |
tree | 086a9c3b5d584ff0ea58372ca53ae3a0cdba445e /generic/tkCanvas.c | |
parent | c86de1b46e1f322ca4ad49bfda61f8101314fb41 (diff) | |
download | tk-71807b8a629a1628286b5dd2858f0e3df2ada2fa.zip tk-71807b8a629a1628286b5dd2858f0e3df2ada2fa.tar.gz tk-71807b8a629a1628286b5dd2858f0e3df2ada2fa.tar.bz2 |
Eliminate use of (VOID*) casts when calling memset or memcpy.
Diffstat (limited to 'generic/tkCanvas.c')
-rw-r--r-- | generic/tkCanvas.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c index ac1b4f0..d420a8b 100644 --- a/generic/tkCanvas.c +++ b/generic/tkCanvas.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkCanvas.c,v 1.40 2005/11/27 02:36:13 das Exp $ + * RCS: @(#) $Id: tkCanvas.c,v 1.41 2007/04/17 14:36:49 dkf Exp $ */ /* #define USE_OLD_TAG_SEARCH 1 */ @@ -3837,8 +3837,7 @@ DoItem( itemPtr->tagSpace += 5; newTagPtr = (Tk_Uid *) ckalloc((unsigned) (itemPtr->tagSpace * sizeof(Tk_Uid))); - memcpy((VOID *) newTagPtr, (VOID *) itemPtr->tagPtr, - (itemPtr->numTags * sizeof(Tk_Uid))); + memcpy(newTagPtr, itemPtr->tagPtr, itemPtr->numTags * sizeof(Tk_Uid)); if (itemPtr->tagPtr != itemPtr->staticTagSpace) { ckfree((char *) itemPtr->tagPtr); } |