diff options
author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-01-26 00:24:07 (GMT) |
---|---|---|
committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-01-26 00:24:07 (GMT) |
commit | 3aea137022a2687501c1ef6fdf4b9a1f1bc82956 (patch) | |
tree | cd1af88f02192ab59b05cebb82e886341624241e /generic/tkSquare.c | |
parent | 8e79746521d9bd70d815b522f3a69dc0c26ac4b6 (diff) | |
download | tk-3aea137022a2687501c1ef6fdf4b9a1f1bc82956.zip tk-3aea137022a2687501c1ef6fdf4b9a1f1bc82956.tar.gz tk-3aea137022a2687501c1ef6fdf4b9a1f1bc82956.tar.bz2 |
Use some more (void *)'s in FreeProc's, a step in the direction getting Tk to work with "novem"
Diffstat (limited to 'generic/tkSquare.c')
-rw-r--r-- | generic/tkSquare.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkSquare.c b/generic/tkSquare.c index ad1506c..36d2d6e 100644 --- a/generic/tkSquare.c +++ b/generic/tkSquare.c @@ -98,7 +98,7 @@ static const Tk_OptionSpec optionSpecs[] = { static void SquareDeletedProc(ClientData clientData); static int SquareConfigure(Tcl_Interp *interp, Square *squarePtr); -static void SquareDestroy(char *memPtr); +static void SquareDestroy(void *memPtr); static void SquareDisplay(ClientData clientData); static void KeepInWindow(Square *squarePtr); static void SquareObjEventProc(ClientData clientData, @@ -410,7 +410,7 @@ SquareObjEventProc( if (squarePtr->updatePending) { Tcl_CancelIdleCall(SquareDisplay, squarePtr); } - Tcl_EventuallyFree(squarePtr, SquareDestroy); + Tcl_EventuallyFree(squarePtr, (Tcl_FreeProc *) SquareDestroy); } } @@ -554,9 +554,9 @@ SquareDisplay( static void SquareDestroy( - char *memPtr) /* Info about square widget. */ + void *memPtr) /* Info about square widget. */ { - Square *squarePtr = (Square *) memPtr; + Square *squarePtr = memPtr; ckfree(squarePtr); } |