From b8e7b081ba92ee22a76e59280f2a04c8d68ca538 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Wed, 18 Dec 2019 09:21:12 +0000 Subject: [PATCH] Fix Hurd build: typoes Broken-by: 2791749f22 --- src/OS/os.c-GNU | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OS/os.c-GNU b/src/OS/os.c-GNU index 06226839b..2c63ddca8 100644 --- a/src/OS/os.c-GNU +++ b/src/OS/os.c-GNU @@ -58,7 +58,7 @@ os_pipe_read(int fd, void * buf, size_t count) { for (int rc, retries = 10; retries > 0; retries--) { - if ((rc = read(fd, buf, count) >= 0) break; + if ((rc = read(fd, buf, count)) >= 0) break; if (rc != -1 || errno != EINTR) break; } return rc; @@ -70,7 +70,7 @@ os_pipe_write(int fd, void * buf, size_t count) { for (int rc, retries = 10; retries > 0; retries--) { - if ((rc = write(fd, buf, count) >= 0) break; + if ((rc = write(fd, buf, count)) >= 0) break; if (rc != -1 || errno != EINTR) break; } return rc; @@ -81,7 +81,7 @@ os_pipe_writev(int fd, const struct iovec * iov, int iovcnt { for (int rc, retries = 10; retries > 0; retries--) { - if ((rc = writev(fd, iov, iovcnt) >= 0) break; + if ((rc = writev(fd, iov, iovcnt)) >= 0) break; if (rc != -1 || errno != EINTR) break; } return rc; -- 2.25.1