aboutsummaryrefslogtreecommitdiff
path: root/jim-aio.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2010-09-16 09:56:14 +1000
committerSteve Bennett <steveb@workware.net.au>2010-10-15 11:02:53 +1000
commite9a230adb3af07d8323a11f90151076b32df432b (patch)
tree32e9cc5ac8c91fd62fcd6b0be0a88fb8cc2c7ac9 /jim-aio.c
parentb132ba7d92f1e42d3711976f059087e521d083a4 (diff)
downloadjimtcl-e9a230adb3af07d8323a11f90151076b32df432b.zip
jimtcl-e9a230adb3af07d8323a11f90151076b32df432b.tar.gz
jimtcl-e9a230adb3af07d8323a11f90151076b32df432b.tar.bz2
Make sure all static data is marked read-only
This reduces the size of the non-shared data segment Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim-aio.c')
-rw-r--r--jim-aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jim-aio.c b/jim-aio.c
index f4bd0e3..666cc1e 100644
--- a/jim-aio.c
+++ b/jim-aio.c
@@ -1265,7 +1265,7 @@ static int JimAioPutsCmd(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
static void JimAioTclCompat(Jim_Interp *interp)
{
- static const char *tclcmds[] = { "read", "gets", "flush", "close", "eof", "seek", "tell", 0 };
+ static const char * const tclcmds[] = { "read", "gets", "flush", "close", "eof", "seek", "tell", 0 };
int i;
for (i = 0; tclcmds[i]; i++) {