From 173d6c84a68691f8bc00749509b8e3665bc159ee Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 16 Jan 2009 14:47:21 +0100 Subject: Remove sync rpc_read wrapper --- source3/rpc_client/cli_pipe.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'source3/rpc_client') 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) -- cgit