diff options
author | nijtmans <nijtmans> | 2008-11-09 20:51:28 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2008-11-09 20:51:28 (GMT) |
commit | df18c1fe67355d2bb0b36c28e8c9a66f1d5ae3c8 (patch) | |
tree | b0eb47d8c31b341a93520b3ddc364fcb3e5077df /generic/tkScrollbar.c | |
parent | 6bb91a5313a57dceb34e2cd3764971af61368408 (diff) | |
download | tk-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/tkScrollbar.c')
-rw-r--r-- | generic/tkScrollbar.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/generic/tkScrollbar.c b/generic/tkScrollbar.c index 64bdc70..b751d33 100644 --- a/generic/tkScrollbar.c +++ b/generic/tkScrollbar.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: tkScrollbar.c,v 1.16 2008/11/08 22:52:29 dkf Exp $ + * RCS: @(#) $Id: tkScrollbar.c,v 1.17 2008/11/09 20:51:28 nijtmans Exp $ */ #include "tkInt.h" @@ -22,10 +22,8 @@ * Custom option for handling "-orient" */ -static Tk_CustomOption orientOption = { - (Tk_OptionParseProc *) TkOrientParseProc, - TkOrientPrintProc, - NULL +static const Tk_CustomOption orientOption = { + TkOrientParseProc, TkOrientPrintProc, (ClientData) NULL }; /* |