summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-09-10 13:47:21 -0400
committerpommicket <pommicket@gmail.com>2023-09-10 13:47:21 -0400
commitfeee83bf24564212832fd113e594a17498c87c21 (patch)
tree91fb15b718f9716b7b35dd871d687fb45ac0dad0 /build.c
parent6586f9e66d87017984f57b3b4579c78897ba66f2 (diff)
swap return 0 and -1 for process_read/socket_read
for consistency with process_write/socket_write
Diffstat (limited to 'build.c')
-rw-r--r--build.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.c b/build.c
index f45b025..df9a140 100644
--- a/build.c
+++ b/build.c
@@ -357,10 +357,10 @@ void build_frame(Ted *ted, float x1, float y1, float x2, float y2) {
ted_error(ted, "Error reading command output: %s.", process_geterr(ted->build_process));
build_stop(ted);
break;
- } else if (bytes_read == -1) {
+ } else if (bytes_read == 0) {
// no data right now.
break;
- } else if (bytes_read == 0) {
+ } else if (bytes_read == -1) {
// end of file
break;
} else {