summaryrefslogtreecommitdiffstats
path: root/generic/tkAtom.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-18 18:08:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-18 18:08:37 (GMT)
commit95c5b39b2e335c0fc08a25281ad9097a29aee1ae (patch)
treebab392895ed17f917311f2fb0119304a49a10671 /generic/tkAtom.c
parent15bcec02d97d8789fa796cabdc76859618f22387 (diff)
downloadtk-95c5b39b2e335c0fc08a25281ad9097a29aee1ae.zip
tk-95c5b39b2e335c0fc08a25281ad9097a29aee1ae.tar.gz
tk-95c5b39b2e335c0fc08a25281ad9097a29aee1ae.tar.bz2
make some more 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 f94af81..108e989 100644
--- a/generic/tkAtom.c
+++ b/generic/tkAtom.c
@@ -22,7 +22,7 @@
* They should match those found in xatom.h
*/
-static char * atomNameArray[] = {
+static CONST char *atomNameArray[] = {
"PRIMARY", "SECONDARY", "ARC",
"ATOM", "BITMAP", "CARDINAL",
"COLORMAP", "CURSOR", "CUT_BUFFER0",
@@ -199,7 +199,7 @@ AtomInit(dispPtr)
for (atom = 1; atom <= XA_LAST_PREDEFINED; atom++) {
hPtr = Tcl_FindHashEntry(&dispPtr->atomTable, (char *) atom);
if (hPtr == NULL) {
- char *name;
+ CONST char *name;
int new;
name = atomNameArray[atom - 1];