diff options
author | Volker Lendecke <vl@samba.org> | 2009-01-31 16:17:25 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-01-31 17:50:18 +0100 |
commit | fa7ddc78b8da8265096b1cc45471e1c7c96ac994 (patch) | |
tree | 75df013676d24f9393a0de7324efd6c80333183d /source3/rpc_server | |
parent | 72729bfaee6057c383e1b2b261893d2bd8ae9714 (diff) | |
download | samba-fa7ddc78b8da8265096b1cc45471e1c7c96ac994.tar.gz samba-fa7ddc78b8da8265096b1cc45471e1c7c96ac994.tar.bz2 samba-fa7ddc78b8da8265096b1cc45471e1c7c96ac994.zip |
Remove unused np_read sync wrapper
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_pipe_hnd.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index 813561bac4..0a4d94fedc 100644 --- a/source3/rpc_server/srv_pipe_hnd.c +++ b/source3/rpc_server/srv_pipe_hnd.c @@ -1285,33 +1285,3 @@ NTSTATUS np_read_recv(struct async_req *req, ssize_t *nread, *is_data_outstanding = state->is_data_outstanding; return NT_STATUS_OK; } - -NTSTATUS np_read(struct fake_file_handle *handle, uint8_t *data, size_t len, - ssize_t *nread, bool *is_data_outstanding) -{ - TALLOC_CTX *frame = talloc_stackframe(); - struct event_context *ev; - struct async_req *req; - NTSTATUS status; - - ev = event_context_init(frame); - if (ev == NULL) { - status = NT_STATUS_NO_MEMORY; - goto fail; - } - - req = np_read_send(frame, ev, handle, data, len); - if (req == NULL) { - status = NT_STATUS_NO_MEMORY; - goto fail; - } - - while (req->state < ASYNC_REQ_DONE) { - event_loop_once(ev); - } - - status = np_read_recv(req, nread, is_data_outstanding); - fail: - TALLOC_FREE(frame); - return status; -} |