summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-17 09:31:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-17 09:31:16 (GMT)
commit0a36b1187dcef39b41d28a5ce319aa7c54f56f66 (patch)
treeebf27488f191f5ad74f527ac6c557710f5505d32 /unix/tclUnixChan.c
parentc11add7a17f78e2ec40ede65aed3e0d1485062e1 (diff)
parentbc10bf6d03a6c8685c64e36a6095e289e2b1ef33 (diff)
downloadtcl-0a36b1187dcef39b41d28a5ce319aa7c54f56f66.zip
tcl-0a36b1187dcef39b41d28a5ce319aa7c54f56f66.tar.gz
tcl-0a36b1187dcef39b41d28a5ce319aa7c54f56f66.tar.bz2
Merge 8.7
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index cabe3e5..b515e37 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -275,7 +275,7 @@ FileInputProc(
*/
bytesRead = read(fsPtr->fd, buf, toRead);
- if (bytesRead > -1) {
+ if (bytesRead >= 0) {
return bytesRead;
}
*errorCodePtr = errno;
@@ -322,7 +322,7 @@ FileOutputProc(
return 0;
}
written = write(fsPtr->fd, buf, toWrite);
- if (written > -1) {
+ if (written >= 0) {
return written;
}
*errorCodePtr = errno;