ANSI-C compatibility changes

This commit is contained in:
antirez
2009-03-27 20:48:32 +01:00
parent 29fac6170a
commit a4d1ba9a73
5 changed files with 35 additions and 22 deletions

4
anet.c
View File

@ -177,7 +177,7 @@ int anetTcpNonBlockConnect(char *err, char *addr, int port)
/* Like read(2) but make sure 'count' is read before to return
* (unless error or EOF condition is encountered) */
int anetRead(int fd, void *buf, int count)
int anetRead(int fd, char *buf, int count)
{
int nread, totlen = 0;
while(totlen != count) {
@ -192,7 +192,7 @@ int anetRead(int fd, void *buf, int count)
/* Like write(2) but make sure 'count' is read before to return
* (unless error is encountered) */
int anetWrite(int fd, void *buf, int count)
int anetWrite(int fd, char *buf, int count)
{
int nwritten, totlen = 0;
while(totlen != count) {