summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2010-03-19 15:29:28 (GMT)
committerdgp <dgp@users.sourceforge.net>2010-03-19 15:29:28 (GMT)
commit100d139c36fb7a2c6ffccf1ef1257a7d0d5dbeb3 (patch)
treeb54ae8d98281adf50b77ecff958c23a835ef4e8b
parentfad70d6c517d6990239e19fa09f5999a1543c74f (diff)
downloadtcl-100d139c36fb7a2c6ffccf1ef1257a7d0d5dbeb3.zip
tcl-100d139c36fb7a2c6ffccf1ef1257a7d0d5dbeb3.tar.gz
tcl-100d139c36fb7a2c6ffccf1ef1257a7d0d5dbeb3.tar.bz2
constification backport to silence warning
-rw-r--r--generic/tclTestObj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclTestObj.c b/generic/tclTestObj.c
index 0326208..53cf2ac 100644
--- a/generic/tclTestObj.c
+++ b/generic/tclTestObj.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclTestObj.c,v 1.21.2.2 2010/03/18 20:38:43 dgp Exp $
+ * RCS: @(#) $Id: tclTestObj.c,v 1.21.2.3 2010/03/19 15:29:28 dgp Exp $
*/
#include "tclInt.h"
@@ -34,7 +34,7 @@ static Tcl_Obj *varPtr[NUMBER_OF_OBJECT_VARS];
static int CheckIfVarUnset(Tcl_Interp *interp, int varIndex);
static int GetVariableIndex(Tcl_Interp *interp,
- char *string, int *indexPtr);
+ const char *string, int *indexPtr);
static void SetVarToObj(int varIndex, Tcl_Obj *objPtr);
int TclObjTest_Init(Tcl_Interp *interp);
static int TestbignumobjCmd(ClientData dummy, Tcl_Interp *interp,
@@ -1387,7 +1387,7 @@ SetVarToObj(
static int
GetVariableIndex(
Tcl_Interp *interp, /* Interpreter for error reporting. */
- char *string, /* String containing a variable index
+ const char *string, /* String containing a variable index
* specified as a nonnegative number less than
* NUMBER_OF_OBJECT_VARS. */
int *indexPtr) /* Place to store converted result. */