]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Remove sync rpc_read wrapper
authorVolker Lendecke <vl@samba.org>
Fri, 16 Jan 2009 13:47:21 +0000 (14:47 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 18 Jan 2009 14:40:43 +0000 (15:40 +0100)
source3/rpc_client/cli_pipe.c

index 809fb1a9eb992adfa1d4aa45fbe0c665427c3c85..4db30bb8c332aeeabac5676d9c6110706e2444d4 100644 (file)
@@ -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)