summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFCmd.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-03 20:25:14 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-03 20:25:14 (GMT)
commitee3826893da771c3254ecf2aa2da59790d1d0541 (patch)
tree4dde8a27dc8ba84476dbd8eaf698329ee7ba75fe /unix/tclUnixFCmd.c
parent474d95712ea623f7cccf704be60d713aa2ebe309 (diff)
parente74974e6cddc887a442d6134824509aeeb1ce0f7 (diff)
downloadtcl-ee3826893da771c3254ecf2aa2da59790d1d0541.zip
tcl-ee3826893da771c3254ecf2aa2da59790d1d0541.tar.gz
tcl-ee3826893da771c3254ecf2aa2da59790d1d0541.tar.bz2
Merge tip-548 (since using the *WChar* functions leads to less type-casts in c++)
Als finish implementaton for MacOSX
Diffstat (limited to 'unix/tclUnixFCmd.c')
-rw-r--r--unix/tclUnixFCmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c
index 2c85c4d..f15c3d9 100644
--- a/unix/tclUnixFCmd.c
+++ b/unix/tclUnixFCmd.c
@@ -1960,7 +1960,7 @@ TclpObjNormalizePath(
*/
if (nextCheckpoint == 0 && haveRealpath) {
- char *lastDir = strrchr(currentPathEndPosition, '/');
+ const char *lastDir = strrchr(currentPathEndPosition, '/');
if (lastDir != NULL) {
nativePath = Tcl_UtfToExternalDString(NULL, path,
@@ -2561,7 +2561,7 @@ SetUnixFileAttributes(
statBuf.st_flags &= ~UF_IMMUTABLE;
}
- native = Tcl_FSGetNativePath(fileName);
+ native = (const char *)Tcl_FSGetNativePath(fileName);
result = chflags(native, statBuf.st_flags); /* INTL: Native. */
if (result != 0) {
if (interp != NULL) {