summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFCmd.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-12-16 23:24:13 (GMT)
committernijtmans <nijtmans>2008-12-16 23:24:13 (GMT)
commit1d90238ed304fdd70f1a56dfc4f94a7add80c736 (patch)
tree692c37174e83ec64e5f20f728d49cea200dae3f3 /unix/tclUnixFCmd.c
parent74318119b04effffec948581aa1004b23fdd6c3b (diff)
downloadtcl-1d90238ed304fdd70f1a56dfc4f94a7add80c736.zip
tcl-1d90238ed304fdd70f1a56dfc4f94a7add80c736.tar.gz
tcl-1d90238ed304fdd70f1a56dfc4f94a7add80c736.tar.bz2
eliminate -Wwrite-strings warnings in enable-threads build.
use TclNewLiteralStringObj()
Diffstat (limited to 'unix/tclUnixFCmd.c')
-rw-r--r--unix/tclUnixFCmd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c
index 442c6d6..2523800 100644
--- a/unix/tclUnixFCmd.c
+++ b/unix/tclUnixFCmd.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: tclUnixFCmd.c,v 1.70 2008/11/29 18:17:19 dkf Exp $
+ * RCS: @(#) $Id: tclUnixFCmd.c,v 1.71 2008/12/16 23:24:13 nijtmans Exp $
*
* Portions of this code were derived from NetBSD source code which has the
* following copyright notice:
@@ -1059,7 +1059,7 @@ TraverseUnixTree(
unsigned short pathlen = ent->fts_pathlen - sourceLen;
int type;
Tcl_StatBuf *statBufPtr = NULL;
-
+
if (info == FTS_DNR || info == FTS_ERR || info == FTS_NS) {
errfile = ent->fts_path;
break;
@@ -1684,7 +1684,8 @@ SetPermissionsAttribute(
Tcl_Obj *
TclpObjListVolumes(void)
{
- Tcl_Obj *resultPtr = Tcl_NewStringObj("/", 1);
+ Tcl_Obj *resultPtr;
+ TclNewLiteralStringObj(resultPtr, "/");
Tcl_IncrRefCount(resultPtr);
return resultPtr;