diff options
Diffstat (limited to 'src/lib/libcrypto/des/enc_read.c')
-rw-r--r-- | src/lib/libcrypto/des/enc_read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/des/enc_read.c b/src/lib/libcrypto/des/enc_read.c index 694970ccd2..7399ff7269 100644 --- a/src/lib/libcrypto/des/enc_read.c +++ b/src/lib/libcrypto/des/enc_read.c | |||
@@ -147,7 +147,7 @@ int des_enc_read(int fd, void *buf, int len, des_key_schedule sched, | |||
147 | /* first - get the length */ | 147 | /* first - get the length */ |
148 | while (net_num < HDRSIZE) | 148 | while (net_num < HDRSIZE) |
149 | { | 149 | { |
150 | i=read(fd,&(net[net_num]),HDRSIZE-net_num); | 150 | i=read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); |
151 | #ifdef EINTR | 151 | #ifdef EINTR |
152 | if ((i == -1) && (errno == EINTR)) continue; | 152 | if ((i == -1) && (errno == EINTR)) continue; |
153 | #endif | 153 | #endif |
@@ -169,7 +169,7 @@ int des_enc_read(int fd, void *buf, int len, des_key_schedule sched, | |||
169 | net_num=0; | 169 | net_num=0; |
170 | while (net_num < rnum) | 170 | while (net_num < rnum) |
171 | { | 171 | { |
172 | i=read(fd,&(net[net_num]),rnum-net_num); | 172 | i=read(fd,(void *)&(net[net_num]),rnum-net_num); |
173 | #ifdef EINTR | 173 | #ifdef EINTR |
174 | if ((i == -1) && (errno == EINTR)) continue; | 174 | if ((i == -1) && (errno == EINTR)) continue; |
175 | #endif | 175 | #endif |