summaryrefslogtreecommitdiffstats
path: root/macosx/tclMacOSXFCmd.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-15 15:20:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-15 15:20:29 (GMT)
commit4796062aab8a24df621cf33dbe862f72b36986f8 (patch)
tree29b9e228043f436e5eaff478e6178f21c6c185ee /macosx/tclMacOSXFCmd.c
parent7934f521d7f3b837fc6430fe78d9320756af1d82 (diff)
parent2d85a1f9deb33cad80923f44a691189b7aefd8a5 (diff)
downloadtcl-4796062aab8a24df621cf33dbe862f72b36986f8.zip
tcl-4796062aab8a24df621cf33dbe862f72b36986f8.tar.gz
tcl-4796062aab8a24df621cf33dbe862f72b36986f8.tar.bz2
Merge tip-548
Diffstat (limited to 'macosx/tclMacOSXFCmd.c')
-rw-r--r--macosx/tclMacOSXFCmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tclMacOSXFCmd.c b/macosx/tclMacOSXFCmd.c
index 45eb748..06ad180 100644
--- a/macosx/tclMacOSXFCmd.c
+++ b/macosx/tclMacOSXFCmd.c
@@ -347,7 +347,7 @@ TclMacOSXSetFileAttribute(
Tcl_DStringAppend(&ds, native, -1);
Tcl_DStringAppend(&ds, _PATH_RSRCFORKSPEC, -1);
- result = truncate(Tcl_DStringValue(&ds), (off_t)0);
+ result = truncate(Tcl_DStringValue(&ds), 0);
if (result != 0) {
/*
* truncate() on a valid resource fork path may fail with a
@@ -689,7 +689,7 @@ SetOSTypeFromAny(
static void
UpdateStringOfOSType(
- register Tcl_Obj *objPtr) /* OSType object whose string rep to
+ Tcl_Obj *objPtr) /* OSType object whose string rep to
* update. */
{
const int size = TCL_UTF_MAX * 4;