summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2009-02-03 23:10:56 (GMT)
committernijtmans <nijtmans@noemail.net>2009-02-03 23:10:56 (GMT)
commitbbd82769788a3f80f11bbdba8c6f9f4830947c4c (patch)
treea72237070484512e9aa19c3f44b7ed7313fe1086 /unix/tclUnixFile.c
parent6e4f78db023646f12ed67ab2bd252729974411f3 (diff)
downloadtcl-bbd82769788a3f80f11bbdba8c6f9f4830947c4c.zip
tcl-bbd82769788a3f80f11bbdba8c6f9f4830947c4c.tar.gz
tcl-bbd82769788a3f80f11bbdba8c6f9f4830947c4c.tar.bz2
- eliminate some unnessary type casts
- some internal const decorations - spacing FossilOrigin-Name: 4ad5e07e8ede6030f3761fe757be48b382755be1
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r--unix/tclUnixFile.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index a24966c..8eabbbb 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixFile.c,v 1.53 2008/04/27 22:21:34 dkf Exp $
+ * RCS: @(#) $Id: tclUnixFile.c,v 1.54 2009/02/03 23:10:57 nijtmans Exp $
*/
#include "tclInt.h"
@@ -314,7 +314,7 @@ TclpMatchInDirectory(
matchHiddenPat = (pattern[0] == '.')
|| ((pattern[0] == '\\') && (pattern[1] == '.'));
- matchHidden = matchHiddenPat
+ matchHidden = matchHiddenPat
|| (types && (types->perm & TCL_GLOB_PERM_HIDDEN));
while ((entryPtr = TclOSreaddir(d)) != NULL) { /* INTL: Native. */
Tcl_DString utfDs;
@@ -1080,7 +1080,8 @@ ClientData
TclNativeCreateNativeRep(
Tcl_Obj *pathPtr)
{
- char *nativePathPtr, *str;
+ char *nativePathPtr;
+ const char *str;
Tcl_DString ds;
Tcl_Obj *validPathPtr;
int len;