summaryrefslogtreecommitdiffstats
path: root/generic/tkGC.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-09-08 16:01:20 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-09-08 16:01:20 (GMT)
commitdcf3897c755ed042d4b1b5b8481d5c83c2a928b4 (patch)
treed5a99eedcb31cb044b54e5d7374154706dca4762 /generic/tkGC.c
parentba5dd50b0b3e182eb634bb7cf638870f2954e500 (diff)
downloadtk-dcf3897c755ed042d4b1b5b8481d5c83c2a928b4.zip
tk-dcf3897c755ed042d4b1b5b8481d5c83c2a928b4.tar.gz
tk-dcf3897c755ed042d4b1b5b8481d5c83c2a928b4.tar.bz2
Assorted minor cleanups.
Diffstat (limited to 'generic/tkGC.c')
-rw-r--r--generic/tkGC.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkGC.c b/generic/tkGC.c
index 0916995..8f928d1 100644
--- a/generic/tkGC.c
+++ b/generic/tkGC.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: tkGC.c,v 1.8 2007/09/07 00:34:52 dgp Exp $
+ * RCS: @(#) $Id: tkGC.c,v 1.9 2007/09/08 16:01:20 dkf Exp $
*/
#include "tkInt.h"
@@ -92,7 +92,7 @@ Tk_GetGC(
* structure on some systems.
*/
- memset((void *) &valueKey, 0, sizeof(valueKey));
+ memset(&valueKey, 0, sizeof(valueKey));
/*
* First, check to see if there's already a GC that will work for this
@@ -218,7 +218,7 @@ Tk_GetGC(
valueKey.screenNum = Tk_ScreenNumber(tkwin);
valueKey.depth = Tk_Depth(tkwin);
valueHashPtr = Tcl_CreateHashEntry(&dispPtr->gcValueTable,
- (char *) &valueKey, &isNew);
+ (char *) &valueKey, &isNew);
if (!isNew) {
gcPtr = (TkGC *) Tcl_GetHashValue(valueHashPtr);
gcPtr->refCount++;
@@ -256,7 +256,7 @@ Tk_GetGC(
gcPtr->refCount = 1;
gcPtr->valueHashPtr = valueHashPtr;
idHashPtr = Tcl_CreateHashEntry(&dispPtr->gcIdTable,
- (char *) gcPtr->gc, &isNew);
+ (char *) gcPtr->gc, &isNew);
if (!isNew) {
Tcl_Panic("GC already registered in Tk_GetGC");
}