From d261c537236503faaa31dfb44278b08a492020ec Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 2 Feb 2008 00:02:33 +0100 Subject: [PATCH] sendall(): Replace send() by write(). With zero flags parameter, send() is equivalent to write(2). --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.c b/net.c index 10fc1219..09963f2e 100644 --- a/net.c +++ b/net.c @@ -362,7 +362,7 @@ static int sendall(int fd, const char *buf, size_t *len) assert(total); *len = 0; while (*len < total) { - int ret = send(fd, buf + *len, total - *len, 0); + int ret = write(fd, buf + *len, total - *len); if (ret == -1) return -ERRNO_TO_PARA_ERROR(errno); *len += ret; -- 2.39.2