mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 05:21:33 +00:00
ANSI-C compatibility changes
This commit is contained in:
4
anet.c
4
anet.c
@ -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) {
|
||||
|
Reference in New Issue
Block a user