summaryrefslogtreecommitdiffstats
path: root/crypto/des
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>1999-12-19 16:07:19 +0000
committerAndy Polyakov <appro@openssl.org>1999-12-19 16:07:19 +0000
commit9a1e34e5deab94717758384d76a20b39ec9ed030 (patch)
tree36a577bff8b3f476da053ccdf0ab34ae4f0874a2 /crypto/des
parent2b6313d0da133725bd9e01f8adef320bcfeb4487 (diff)
MacOS updates.
Diffstat (limited to 'crypto/des')
-rw-r--r--crypto/des/enc_writ.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/crypto/des/enc_writ.c b/crypto/des/enc_writ.c
index ba3f0822ef..8ded146f8b 100644
--- a/crypto/des/enc_writ.c
+++ b/crypto/des/enc_writ.c
@@ -153,12 +153,15 @@ int des_enc_write(int fd, const void *_buf, int len,
{
/* eay 26/08/92 I was not doing writing from where we
* got upto. */
- i=write(fd,&(outbuf[j]),outnum-j);
+ i=write(fd,(void *)&(outbuf[j]),outnum-j);
if (i == -1)
{
+#ifdef EINTR
if (errno == EINTR)
i=0;
- else /* This is really a bad error - very bad
+ else
+#endif
+ /* This is really a bad error - very bad
* It will stuff-up both ends. */
return(-1);
}