projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d85091b
)
sendall(): Replace send() by write().
author
Andre Noll
<maan@systemlinux.org>
Fri, 1 Feb 2008 23:02:33 +0000
(
00:02
+0100)
committer
Andre Noll
<maan@systemlinux.org>
Fri, 1 Feb 2008 23:02:33 +0000
(
00:02
+0100)
With zero flags parameter, send() is equivalent to write(2).
net.c
patch
|
blob
|
history
diff --git
a/net.c
b/net.c
index
10fc121
..
09963f2
100644
(file)
--- 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;