diff options
author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-04-18 18:22:03 (GMT) |
---|---|---|
committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-04-18 18:22:03 (GMT) |
commit | 9366a3b460d6b81f5cab38d78921c195a8349a8f (patch) | |
tree | ceb431e7d0adf6d635f33303e9e505b2a28d4bf8 /generic/tkImgPhoto.c | |
parent | 9cd6cc2d5a69c30ce451b8c099dc0a40430f63b8 (diff) | |
parent | 8a62ae175255565861cad9c9f862b68ab726ceb1 (diff) | |
download | tk-9366a3b460d6b81f5cab38d78921c195a8349a8f.zip tk-9366a3b460d6b81f5cab38d78921c195a8349a8f.tar.gz tk-9366a3b460d6b81f5cab38d78921c195a8349a8f.tar.bz2 |
make some internal tables const
Diffstat (limited to 'generic/tkImgPhoto.c')
-rw-r--r-- | generic/tkImgPhoto.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c index ffff4fc..b30ca30 100644 --- a/generic/tkImgPhoto.c +++ b/generic/tkImgPhoto.c @@ -274,7 +274,7 @@ struct SubcommandOptions { * of the OPT_* constants above. */ -static char *optionNames[] = { +static const char *const optionNames[] = { "-background", "-compositingrule", "-format", @@ -1630,7 +1630,8 @@ ParseSubcommandOptions( { int index, c, bit, currentBit, length; int values[4], numValues, maxValues, argIndex; - char *option, **listPtr; + char *option; + const char *const *listPtr; for (index = *optIndexPtr; index < objc; *optIndexPtr = ++index) { /* |