summaryrefslogtreecommitdiffstats
path: root/generic/tkAtom.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-18 18:22:03 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-18 18:22:03 (GMT)
commit851c442b53473d494521a4633e8d764cb5d5e45a (patch)
treeceb431e7d0adf6d635f33303e9e505b2a28d4bf8 /generic/tkAtom.c
parent8a1bd75ea0b55649f8dbabaa86aae60fc85b116b (diff)
parent95c5b39b2e335c0fc08a25281ad9097a29aee1ae (diff)
downloadtk-851c442b53473d494521a4633e8d764cb5d5e45a.zip
tk-851c442b53473d494521a4633e8d764cb5d5e45a.tar.gz
tk-851c442b53473d494521a4633e8d764cb5d5e45a.tar.bz2
make some internal tables const
Diffstat (limited to 'generic/tkAtom.c')
-rw-r--r--generic/tkAtom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkAtom.c b/generic/tkAtom.c
index 54d3598..fe1b5b3 100644
--- a/generic/tkAtom.c
+++ b/generic/tkAtom.c
@@ -20,7 +20,7 @@
* those found in xatom.h
*/
-static char * atomNameArray[] = {
+static const char *atomNameArray[] = {
"PRIMARY", "SECONDARY", "ARC",
"ATOM", "BITMAP", "CARDINAL",
"COLORMAP", "CURSOR", "CUT_BUFFER0",
@@ -190,7 +190,7 @@ AtomInit(
Tcl_InitHashTable(&dispPtr->atomTable, TCL_ONE_WORD_KEYS);
for (atom = 1; atom <= XA_LAST_PREDEFINED; atom++) {
- char *name;
+ const char *name;
int isNew;
hPtr = Tcl_FindHashEntry(&dispPtr->atomTable, INT2PTR(atom));