From: Jeremy Harris Date: Wed, 18 Dec 2019 09:21:12 +0000 (+0000) Subject: Fix Hurd build: typoes X-Git-Url: https://git.exim.org/users/jgh/exim.git/commitdiff_plain/b8e7b081ba92ee22a76e59280f2a04c8d68ca538 Fix Hurd build: typoes Broken-by: 2791749f22 --- 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;