diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2006-10-27 12:33:17 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2006-10-27 12:33:17 (GMT) |
commit | 9a9b87ca71f8790e35c76118128a219d7936cf44 (patch) | |
tree | 3b11147e8457a1cbd27f581a04adf7a852f19150 /generic/tclBasic.c | |
parent | 69ba11554c721b6f8f3cc0fd8b033dc5e287ccea (diff) | |
download | tcl-9a9b87ca71f8790e35c76118128a219d7936cf44.zip tcl-9a9b87ca71f8790e35c76118128a219d7936cf44.tar.gz tcl-9a9b87ca71f8790e35c76118128a219d7936cf44.tar.bz2 |
Fixed a spot where CONSTness had been forgotten.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r-- | generic/tclBasic.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 8e7cfc1..b6abca2 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.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: tclBasic.c,v 1.203 2006/10/23 23:04:12 msofer Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.204 2006/10/27 12:33:18 dkf Exp $ */ #include "tclInt.h" @@ -1969,8 +1969,8 @@ TclInvokeObjectCommand( int TclRenameCommand( Tcl_Interp *interp, /* Current interpreter. */ - char *oldName, /* Existing command name. */ - char *newName) /* New command name. */ + const char *oldName, /* Existing command name. */ + const char *newName) /* New command name. */ { Interp *iPtr = (Interp *) interp; CONST char *newTail; @@ -1987,8 +1987,7 @@ TclRenameCommand( * found. */ - cmd = Tcl_FindCommand(interp, oldName, NULL, - /*flags*/ 0); + cmd = Tcl_FindCommand(interp, oldName, NULL, /*flags*/ 0); cmdPtr = (Command *) cmd; if (cmdPtr == NULL) { Tcl_AppendResult(interp, "can't ", |