summaryrefslogtreecommitdiff
path: root/src/OS
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2019-12-18 09:21:12 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2019-12-18 09:21:12 +0000
commitb8e7b081ba92ee22a76e59280f2a04c8d68ca538 (patch)
treea6838cc24a6e392efec826b81b5616d7257741bd /src/OS
parent2791749f220602482c2cce772e6520c54218c0dd (diff)
Fix Hurd build: typoes
Broken-by: 2791749f22
Diffstat (limited to 'src/OS')
-rw-r--r--src/OS/os.c-GNU6
1 files 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;