summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2002-01-26 01:10:08 (GMT)
committerdgp <dgp@users.sourceforge.net>2002-01-26 01:10:08 (GMT)
commit107d41756017e763fb66994fb0ba6072b20a7d2b (patch)
treee98bf2d4819a5270b97f764736441c86b9eb51e3 /generic/tclFileName.c
parent727dc02ba3e05c4df81068bc3fd0ac3a8c98328b (diff)
downloadtcl-107d41756017e763fb66994fb0ba6072b20a7d2b.zip
tcl-107d41756017e763fb66994fb0ba6072b20a7d2b.tar.gz
tcl-107d41756017e763fb66994fb0ba6072b20a7d2b.tar.bz2
* Sought out and eliminated instances of CONST-casting that are no
longer needed after the TIP 27 effort.
Diffstat (limited to 'generic/tclFileName.c')
-rw-r--r--generic/tclFileName.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index 3d8400a..2f6ce83 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclFileName.c,v 1.28 2002/01/25 20:40:55 dgp Exp $
+ * RCS: @(#) $Id: tclFileName.c,v 1.29 2002/01/26 01:10:08 dgp Exp $
*/
#include "tclInt.h"
@@ -166,7 +166,7 @@ ExtractWinRoot(path, resultPtr, offset, typePtr)
{
if (path[0] == '/' || path[0] == '\\') {
/* Might be a UNC or Vol-Relative path */
- char *host, *share, *tail;
+ CONST char *host, *share, *tail;
int hlen, slen;
if (path[1] != '/' && path[1] != '\\') {
Tcl_DStringSetLength(resultPtr, offset);
@@ -174,7 +174,7 @@ ExtractWinRoot(path, resultPtr, offset, typePtr)
Tcl_DStringAppend(resultPtr, "/", 1);
return &path[1];
}
- host = (char *)&path[2];
+ host = &path[2];
/* Skip separators */
while (host[0] == '/' || host[0] == '\\') host++;