projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ddb2a14
)
net.c: Return proper error value in recv_bin_buffer().
author
Andre Noll
<maan@systemlinux.org>
Fri, 23 Nov 2007 09:42:09 +0000
(10:42 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Fri, 23 Nov 2007 09:42:09 +0000
(10:42 +0100)
net.c
patch
|
blob
|
history
diff --git
a/net.c
b/net.c
index
f896f56
..
c7bb8b4
100644
(file)
--- a/
net.c
+++ b/
net.c
@@
-232,7
+232,7
@@
__must_check int recv_bin_buffer(int fd, char *buf, size_t size)
} else
n = recv(fd, buf, size, 0);
if (n == -1)
} else
n = recv(fd, buf, size, 0);
if (n == -1)
-
n = -E_RECV
;
+
return -ERRNO_TO_PARA_ERROR(errno)
;
return n;
}
return n;
}