summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2009-04-16 14:53:36 +0200
committerKai Blin <kai@samba.org>2009-05-30 09:17:37 +0200
commit57ea909b327812479e9c61f0398f257023a504b4 (patch)
treeaae6e4514a2ff09738d583ed4a4a0a640a8f0702 /lib
parent590a3afc8a22658075235b5b5eb30e977999b3a8 (diff)
downloadsamba-57ea909b327812479e9c61f0398f257023a504b4.tar.gz
samba-57ea909b327812479e9c61f0398f257023a504b4.tar.bz2
samba-57ea909b327812479e9c61f0398f257023a504b4.zip
libwbclient: Add async call framework.
Diffstat (limited to 'lib')
-rw-r--r--lib/async_req/async_sock.c4
-rw-r--r--lib/async_req/config.mk1
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/async_req/async_sock.c b/lib/async_req/async_sock.c
index 598a126467..09eec10fc5 100644
--- a/lib/async_req/async_sock.c
+++ b/lib/async_req/async_sock.c
@@ -426,7 +426,7 @@ static void writev_handler(struct tevent_context *ev, struct tevent_fd *fde,
to_write += state->iov[i].iov_len;
}
- written = sys_writev(state->fd, state->iov, state->count);
+ written = writev(state->fd, state->iov, state->count);
if (written == -1) {
tevent_req_error(req, errno);
return;
@@ -570,7 +570,7 @@ static void read_packet_handler(struct tevent_context *ev,
return;
}
- tmp = TALLOC_REALLOC_ARRAY(state, state->buf, uint8_t, total+more);
+ tmp = talloc_realloc(state, state->buf, uint8_t, total+more);
if (tevent_req_nomem(tmp, req)) {
return;
}
diff --git a/lib/async_req/config.mk b/lib/async_req/config.mk
index bf0fd6a2db..1f4b557ce4 100644
--- a/lib/async_req/config.mk
+++ b/lib/async_req/config.mk
@@ -1,3 +1,4 @@
[SUBSYSTEM::LIBASYNC_REQ]
+PUBLIC_DEPENDENCIES = LIBREPLACE_NETWORK
LIBASYNC_REQ_OBJ_FILES = $(addprefix ../lib/async_req/, async_sock.o)