[exim-cvs] Fix Hurd build: typoes

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Fix Hurd build: typoes
Gitweb: https://git.exim.org/exim.git/commitdiff/b8e7b081ba92ee22a76e59280f2a04c8d68ca538
Commit:     b8e7b081ba92ee22a76e59280f2a04c8d68ca538
Parent:     2791749f220602482c2cce772e6520c54218c0dd
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Wed Dec 18 09:21:12 2019 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Wed Dec 18 09:21:12 2019 +0000


    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 0622683..2c63ddc 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;