summaryrefslogtreecommitdiffstats
path: root/generic/tkOption.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-04-17 14:36:49 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-04-17 14:36:49 (GMT)
commit71807b8a629a1628286b5dd2858f0e3df2ada2fa (patch)
tree086a9c3b5d584ff0ea58372ca53ae3a0cdba445e /generic/tkOption.c
parentc86de1b46e1f322ca4ad49bfda61f8101314fb41 (diff)
downloadtk-71807b8a629a1628286b5dd2858f0e3df2ada2fa.zip
tk-71807b8a629a1628286b5dd2858f0e3df2ada2fa.tar.gz
tk-71807b8a629a1628286b5dd2858f0e3df2ada2fa.tar.bz2
Eliminate use of (VOID*) casts when calling memset or memcpy.
Diffstat (limited to 'generic/tkOption.c')
-rw-r--r--generic/tkOption.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tkOption.c b/generic/tkOption.c
index 1a7cb04..b26e57e 100644
--- a/generic/tkOption.c
+++ b/generic/tkOption.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: tkOption.c,v 1.18 2006/03/30 01:39:07 hobbs Exp $
+ * RCS: @(#) $Id: tkOption.c,v 1.19 2007/04/17 14:36:49 dkf Exp $
*/
#include "tkPort.h"
@@ -1195,8 +1195,8 @@ ExtendArray(
newPtr->arraySize = 2*arrayPtr->arraySize;
newPtr->numUsed = arrayPtr->numUsed;
newPtr->nextToUse = &newPtr->els[newPtr->numUsed];
- memcpy((VOID *) newPtr->els, (VOID *) arrayPtr->els,
- (arrayPtr->arraySize*sizeof(Element)));
+ memcpy(newPtr->els, arrayPtr->els,
+ arrayPtr->arraySize * sizeof(Element));
ckfree((char *) arrayPtr);
arrayPtr = newPtr;
}
@@ -1316,9 +1316,9 @@ SetupStacks(
StackLevel *newLevels;
newLevels = (StackLevel *) ckalloc((unsigned)
- (tsdPtr->numLevels*2*sizeof(StackLevel)));
- memcpy((VOID *) newLevels, (VOID *) tsdPtr->levels,
- (tsdPtr->numLevels*sizeof(StackLevel)));
+ (tsdPtr->numLevels * 2 * sizeof(StackLevel)));
+ memcpy(newLevels, tsdPtr->levels,
+ tsdPtr->numLevels * sizeof(StackLevel));
ckfree((char *) tsdPtr->levels);
tsdPtr->numLevels *= 2;
tsdPtr->levels = newLevels;