git://git.exim.org
/
users
/
jgh
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b8e7b08
)
Fix Hurd build, another go
author
Jeremy Harris
<jgh146exb@wizmail.org>
Wed, 18 Dec 2019 13:59:22 +0000
(13:59 +0000)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Wed, 18 Dec 2019 13:59:22 +0000
(13:59 +0000)
src/OS/os.c-GNU
patch
|
blob
|
history
diff --git
a/src/OS/os.c-GNU
b/src/OS/os.c-GNU
index 2c63ddca85e07dd6b93e7b435e5ccdfed80a3f37..59ebdf32a97d362471497b3db18e79895e9fd641 100644
(file)
--- a/
src/OS/os.c-GNU
+++ b/
src/OS/os.c-GNU
@@
-56,7
+56,8
@@
return -1;
ssize_t
os_pipe_read(int fd, void * buf, size_t count)
{
ssize_t
os_pipe_read(int fd, void * buf, size_t count)
{
-for (int rc, retries = 10; retries > 0; retries--)
+int rc;
+for (int retries = 10; retries > 0; retries--)
{
if ((rc = read(fd, buf, count)) >= 0) break;
if (rc != -1 || errno != EINTR) break;
{
if ((rc = read(fd, buf, count)) >= 0) break;
if (rc != -1 || errno != EINTR) break;
@@
-68,7
+69,8
@@
return rc;
ssize_t
os_pipe_write(int fd, void * buf, size_t count)
{
ssize_t
os_pipe_write(int fd, void * buf, size_t count)
{
-for (int rc, retries = 10; retries > 0; retries--)
+int rc;
+for (int retries = 10; retries > 0; retries--)
{
if ((rc = write(fd, buf, count)) >= 0) break;
if (rc != -1 || errno != EINTR) break;
{
if ((rc = write(fd, buf, count)) >= 0) break;
if (rc != -1 || errno != EINTR) break;
@@
-79,7
+81,8
@@
return rc;
ssize_t
os_pipe_writev(int fd, const struct iovec * iov, int iovcnt
{
ssize_t
os_pipe_writev(int fd, const struct iovec * iov, int iovcnt
{
-for (int rc, retries = 10; retries > 0; retries--)
+int rc;
+for (int retries = 10; retries > 0; retries--)
{
if ((rc = writev(fd, iov, iovcnt)) >= 0) break;
if (rc != -1 || errno != EINTR) break;
{
if ((rc = writev(fd, iov, iovcnt)) >= 0) break;
if (rc != -1 || errno != EINTR) break;