libwbclient: Add async call framework.
[samba.git] / lib / async_req / async_sock.c
index 598a126467d75411206bc3d3271a0ca7b32de5a9..09eec10fc5e5d6258bc4f1350620c9683478a641 100644 (file)
@@ -426,7 +426,7 @@ static void writev_handler(struct tevent_context *ev, struct tevent_fd *fde,
                to_write += state->iov[i].iov_len;
        }
 
                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;
        if (written == -1) {
                tevent_req_error(req, errno);
                return;
@@ -570,7 +570,7 @@ static void read_packet_handler(struct tevent_context *ev,
                return;
        }
 
                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;
        }
        if (tevent_req_nomem(tmp, req)) {
                return;
        }