summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.c
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2004-05-08 15:51:40 (GMT)
committervincentdarley <vincentdarley>2004-05-08 15:51:40 (GMT)
commit9a2d2fb1dcd0564f603aada088c4ca040b17a31e (patch)
treeb9df2fd0ae95c2aadebd2d858bd8ce4f5e09ae64 /generic/tclFileName.c
parent8b6eab706792604345452c702f230ee1ea71477a (diff)
downloadtcl-9a2d2fb1dcd0564f603aada088c4ca040b17a31e.zip
tcl-9a2d2fb1dcd0564f603aada088c4ca040b17a31e.tar.gz
tcl-9a2d2fb1dcd0564f603aada088c4ca040b17a31e.tar.bz2
fix to some compiler warnings
Diffstat (limited to 'generic/tclFileName.c')
-rw-r--r--generic/tclFileName.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index adbae7a..0307ee1 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.54 2004/05/07 07:44:37 vincentdarley Exp $
+ * RCS: @(#) $Id: tclFileName.c,v 1.55 2004/05/08 15:51:41 vincentdarley Exp $
*/
#include "tclInt.h"
@@ -1679,6 +1679,9 @@ TclGlob(interp, pattern, pathPrefix, globFlags, types)
tail += driveNameLen;
break;
}
+ case TCL_PATH_RELATIVE: {
+ /* Do nothing */
+ }
}
Tcl_DecrRefCount(temp);
}
@@ -1702,7 +1705,8 @@ TclGlob(interp, pattern, pathPrefix, globFlags, types)
if (pathPrefix == NULL) {
int driveNameLen;
Tcl_Obj *driveName;
- if (TclFSNonnativePathType(tail, strlen(tail), NULL, &driveNameLen,
+ if (TclFSNonnativePathType(tail, (int) strlen(tail), NULL,
+ &driveNameLen,
&driveName) == TCL_PATH_ABSOLUTE) {
pathPrefix = driveName;
tail += driveNameLen;