summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvImg.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-11-09 20:51:28 (GMT)
committernijtmans <nijtmans>2008-11-09 20:51:28 (GMT)
commitdf18c1fe67355d2bb0b36c28e8c9a66f1d5ae3c8 (patch)
treeb0eb47d8c31b341a93520b3ddc364fcb3e5077df /generic/tkCanvImg.c
parent6bb91a5313a57dceb34e2cd3764971af61368408 (diff)
downloadtk-df18c1fe67355d2bb0b36c28e8c9a66f1d5ae3c8.zip
tk-df18c1fe67355d2bb0b36c28e8c9a66f1d5ae3c8.tar.gz
tk-df18c1fe67355d2bb0b36c28e8c9a66f1d5ae3c8.tar.bz2
make all Tk_CustomOption tables const and
remove unnecessary type cast
Diffstat (limited to 'generic/tkCanvImg.c')
-rw-r--r--generic/tkCanvImg.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/generic/tkCanvImg.c b/generic/tkCanvImg.c
index 02cce14..96a17e4 100644
--- a/generic/tkCanvImg.c
+++ b/generic/tkCanvImg.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: tkCanvImg.c,v 1.12 2008/04/27 22:38:55 dkf Exp $
+ * RCS: @(#) $Id: tkCanvImg.c,v 1.13 2008/11/09 20:51:28 nijtmans Exp $
*/
#include <stdio.h>
@@ -46,13 +46,11 @@ typedef struct ImageItem {
* Information used for parsing configuration specs:
*/
-static Tk_CustomOption stateOption = {
- (Tk_OptionParseProc *) TkStateParseProc,
- TkStatePrintProc, (ClientData) 2
+static const Tk_CustomOption stateOption = {
+ TkStateParseProc, TkStatePrintProc, (ClientData) 2
};
-static Tk_CustomOption tagsOption = {
- (Tk_OptionParseProc *) Tk_CanvasTagsParseProc,
- Tk_CanvasTagsPrintProc, (ClientData) NULL
+static const Tk_CustomOption tagsOption = {
+ Tk_CanvasTagsParseProc, Tk_CanvasTagsPrintProc, (ClientData) NULL
};
static Tk_ConfigSpec configSpecs[] = {