summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-16 14:47:21 +0100
committerVolker Lendecke <vl@samba.org>2009-01-18 15:40:43 +0100
commit173d6c84a68691f8bc00749509b8e3665bc159ee (patch)
treeccdf645a5f2109d37d30e0e36f111d538afea2d8
parent5d71fe8043799abf098131fd924c35b49111bf54 (diff)
downloadsamba-173d6c84a68691f8bc00749509b8e3665bc159ee.tar.gz
samba-173d6c84a68691f8bc00749509b8e3665bc159ee.tar.bz2
samba-173d6c84a68691f8bc00749509b8e3665bc159ee.zip
Remove sync rpc_read wrapper
-rw-r--r--source3/rpc_client/cli_pipe.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 809fb1a9eb..4db30bb8c3 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -342,34 +342,6 @@ static NTSTATUS rpc_read_recv(struct async_req *req)
return async_req_simple_recv(req);
}
-static NTSTATUS rpc_read(struct rpc_pipe_client *cli,
- char *pdata, size_t size)
-{
- TALLOC_CTX *frame = talloc_stackframe();
- struct event_context *ev;
- struct async_req *req;
- NTSTATUS status = NT_STATUS_NO_MEMORY;
-
- ev = event_context_init(frame);
- if (ev == NULL) {
- goto fail;
- }
-
- req = rpc_read_send(frame, ev, cli, pdata, size);
- if (req == NULL) {
- goto fail;
- }
-
- while (req->state < ASYNC_REQ_DONE) {
- event_loop_once(ev);
- }
-
- status = rpc_read_recv(req);
- fail:
- TALLOC_FREE(frame);
- return status;
-}
-
static NTSTATUS parse_rpc_header(struct rpc_pipe_client *cli,
struct rpc_hdr_info *prhdr,
prs_struct *pdu)