summaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-09-19 20:41:31 +0000
committerNick Mathewson <nickm@torproject.org>2006-09-19 20:41:31 +0000
commit93beeac01d27c3150cc998331ab79354c311bd8f (patch)
tree9ff5d506c6e4f74a01b54e26225b0485ca30eb38 /src/common/util.c
parent8648b1133b72f384fc588208c0439a1aff30ec03 (diff)
downloadtor-93beeac01d27c3150cc998331ab79354c311bd8f.tar.gz
tor-93beeac01d27c3150cc998331ab79354c311bd8f.zip
Merge in some bsockets calls, all wrapped inside #if defined(USE_BSOCKETS)
svn:r8427
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index e1c8844e6b..8bd1f2aec0 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -936,7 +936,7 @@ write_all(int fd, const char *buf, size_t count, int isSocket)
while (written != count) {
if (isSocket)
- result = send(fd, buf+written, count-written, 0);
+ result = tor_socket_send(fd, buf+written, count-written, 0);
else
result = write(fd, buf+written, count-written);
if (result<0)
@@ -962,7 +962,7 @@ read_all(int fd, char *buf, size_t count, int isSocket)
while (numread != count) {
if (isSocket)
- result = recv(fd, buf+numread, count-numread, 0);
+ result = tor_socket_recv(fd, buf+numread, count-numread, 0);
else
result = read(fd, buf+numread, count-numread);
if (result<0)