summaryrefslogtreecommitdiffstats
path: root/generic/tclIndexObj.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-10-14 22:37:53 (GMT)
committernijtmans <nijtmans>2008-10-14 22:37:53 (GMT)
commit45c244cd8dcd109d144858140ce8c0c070c79f7e (patch)
tree600d17e3a8b14046378d7711a27fd9e79eb1ed86 /generic/tclIndexObj.c
parentea53c3ec3c87bc77531bc6965ab99a3a741e5789 (diff)
downloadtcl-45c244cd8dcd109d144858140ce8c0c070c79f7e.zip
tcl-45c244cd8dcd109d144858140ce8c0c070c79f7e.tar.gz
tcl-45c244cd8dcd109d144858140ce8c0c070c79f7e.tar.bz2
* generic/tclCmdAH.c: Fix minor compiler warnings when compiling
* generic/tclCmdMZ.c: with -Wwrite-strings * generic/tclIndexObj.c: * generic/tclProc.c: * generic/tclStubLib.c: * generic/tclUtil.c:
Diffstat (limited to 'generic/tclIndexObj.c')
-rw-r--r--generic/tclIndexObj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c
index bb9078b..f04db71 100644
--- a/generic/tclIndexObj.c
+++ b/generic/tclIndexObj.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIndexObj.c,v 1.45 2008/10/10 04:02:00 das Exp $
+ * RCS: @(#) $Id: tclIndexObj.c,v 1.46 2008/10/14 22:37:53 nijtmans Exp $
*/
#include "tclInt.h"
@@ -42,7 +42,7 @@ static void PrintUsage(Tcl_Interp *interp,
* that can be invoked by generic object code.
*/
-static Tcl_ObjType indexType = {
+static const Tcl_ObjType indexType = {
"index", /* name */
FreeIndex, /* freeIntRepProc */
DupIndex, /* dupIntRepProc */
@@ -559,7 +559,7 @@ PrefixMatchObjCmd(
int flags = 0, result, index;
int dummyLength, i, errorLength;
Tcl_Obj *errorPtr = NULL;
- char *message = "option";
+ const char *message = "option";
Tcl_Obj *tablePtr, *objPtr, *resultPtr;
static const char *const matchOptions[] = {
"-error", "-exact", "-message", NULL