summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-30 09:29:39 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-30 09:29:39 (GMT)
commitf85b666de3d6de93f6c60d612e1c4abf5c671a90 (patch)
tree8fff0ff544d9587f440f38ca68e6b4a7f75e63a8
parentf8a08520cdc2af1b2db6af075baaa99582e6513d (diff)
downloadtk-f85b666de3d6de93f6c60d612e1c4abf5c671a90.zip
tk-f85b666de3d6de93f6c60d612e1c4abf5c671a90.tar.gz
tk-f85b666de3d6de93f6c60d612e1c4abf5c671a90.tar.bz2
Add a few "const" keywords, just for 'correctness'
-rw-r--r--unix/tkUnixFont.c6
-rw-r--r--unix/tkUnixRFont.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/unix/tkUnixFont.c b/unix/tkUnixFont.c
index 1b0f175..e694573 100644
--- a/unix/tkUnixFont.c
+++ b/unix/tkUnixFont.c
@@ -171,7 +171,7 @@ static Tcl_ThreadDataKey dataKey;
* encodings into the names expected by the Tcl encoding package.
*/
-static EncodingAlias encodingAliases[] = {
+static const EncodingAlias encodingAliases[] = {
{"gb2312-raw", "gb2312*"},
{"big5", "big5*"},
{"cns11643-1", "cns11643*-1"},
@@ -408,8 +408,8 @@ ControlUtfProc(
char *dstStart, *dstEnd;
int ch;
int result;
- static char hexChars[] = "0123456789abcdef";
- static char mapChars[] = {
+ static const char hexChars[] = "0123456789abcdef";
+ static const char mapChars[] = {
0, 0, 0, 0, 0, 0, 0,
'a', 'b', 't', 'n', 'v', 'f', 'r'
};
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c
index cf4127d..36c4540 100644
--- a/unix/tkUnixRFont.c
+++ b/unix/tkUnixRFont.c
@@ -69,7 +69,7 @@ void
TkpFontPkgInit(
TkMainInfo *mainPtr) /* The application being created. */
{
- static Tcl_Config cfg[] = {
+ static const Tcl_Config cfg[] = {
{ "fontsystem", "xft" },
{ 0,0 }
};