diff options
author | nijtmans <nijtmans> | 2009-02-03 23:55:47 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2009-02-03 23:55:47 (GMT) |
commit | 4b9f05fc68f4d1a561c16fcb44c31af46bedb3d6 (patch) | |
tree | aa98658e57c70b6cb91802ffef5779126e54b6b5 /generic/tkConfig.c | |
parent | c9098b1706ee463447e128156b9baaf23fa4f0a9 (diff) | |
download | tk-4b9f05fc68f4d1a561c16fcb44c31af46bedb3d6.zip tk-4b9f05fc68f4d1a561c16fcb44c31af46bedb3d6.tar.gz tk-4b9f05fc68f4d1a561c16fcb44c31af46bedb3d6.tar.bz2 |
- eliminate some unnessary type casts
- some internal const decorations
- spacing
Diffstat (limited to 'generic/tkConfig.c')
-rw-r--r-- | generic/tkConfig.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tkConfig.c b/generic/tkConfig.c index 201f204..27a48cb 100644 --- a/generic/tkConfig.c +++ b/generic/tkConfig.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: tkConfig.c,v 1.29 2008/10/15 06:41:06 nijtmans Exp $ + * RCS: @(#) $Id: tkConfig.c,v 1.30 2009/02/03 23:55:47 nijtmans Exp $ */ /* @@ -712,7 +712,8 @@ DoObjConfig( break; } case TK_OPTION_STRING: { - char *newStr, *value; + char *newStr; + const char *value; int length; if (nullOK && ObjectIsEmpty(valuePtr)) { @@ -1123,7 +1124,7 @@ GetOptionFromObj( OptionTable *tablePtr) /* Table in which to look up objPtr. */ { Option *bestPtr; - char *name; + const char *name; /* * First, check to see if the object already has the answer cached. |