summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
Diffstat (limited to 'win')
-rw-r--r--win/tclWinInit.c9
-rw-r--r--win/tclWinPipe.c4
2 files changed, 7 insertions, 6 deletions
diff --git a/win/tclWinInit.c b/win/tclWinInit.c
index 0dadc24..11d182a 100644
--- a/win/tclWinInit.c
+++ b/win/tclWinInit.c
@@ -607,9 +607,10 @@ TclpSetVariables(
*
* Results:
* The return value is the index in environ of an entry with the name
- * "name", or (size_t)-1 if there is no such entry. The integer at *lengthPtr is
- * filled in with the length of name (if a matching entry is found) or
- * the length of the environ array (if no matching entry is found).
+ * "name", or TCL_IO_FAILURE if there is no such entry. The integer
+ * at *lengthPtr is filled in with the length of name (if a matching
+ * entry is found) or the length of the environ array (if no
+ * matching entry is found).
*
* Side effects:
* None.
@@ -626,7 +627,7 @@ TclpFindVariable(
* entries in environ (for unsuccessful
* searches). */
{
- size_t i, length, result = (size_t)-1;
+ size_t i, length, result = TCL_IO_FAILURE;
register const char *env, *p1, *p2;
char *envUpper, *nameUpper;
Tcl_DString envString;
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index eda9fe0..47af1e1 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -851,7 +851,7 @@ TclpCloseFile(
* Results:
* Returns the process id for the child process. If the pid was not known
* by Tcl, either because the pid was not created by Tcl or the child
- * process has already been reaped, (size_t)-1 is returned.
+ * process has already been reaped, TCL_IO_FAILURE is returned.
*
* Side effects:
* None.
@@ -875,7 +875,7 @@ TclpGetPid(
}
}
Tcl_MutexUnlock(&pipeMutex);
- return (size_t)-1;
+ return TCL_IO_FAILURE;
}
/*