mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
librpc: Remove unused sync rpc_transport_np_init()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
07ebf97a74
commit
f3ce997000
@ -88,9 +88,6 @@ struct tevent_req *rpc_transport_np_init_send(TALLOC_CTX *mem_ctx,
|
|||||||
NTSTATUS rpc_transport_np_init_recv(struct tevent_req *req,
|
NTSTATUS rpc_transport_np_init_recv(struct tevent_req *req,
|
||||||
TALLOC_CTX *mem_ctx,
|
TALLOC_CTX *mem_ctx,
|
||||||
struct rpc_cli_transport **presult);
|
struct rpc_cli_transport **presult);
|
||||||
NTSTATUS rpc_transport_np_init(TALLOC_CTX *mem_ctx, struct cli_state *cli,
|
|
||||||
const struct ndr_interface_table *table,
|
|
||||||
struct rpc_cli_transport **presult);
|
|
||||||
|
|
||||||
/* The following definitions come from rpc_client/rpc_transport_sock.c */
|
/* The following definitions come from rpc_client/rpc_transport_sock.c */
|
||||||
|
|
||||||
|
@ -177,34 +177,3 @@ NTSTATUS rpc_transport_np_init_recv(struct tevent_req *req,
|
|||||||
*presult = talloc_move(mem_ctx, &state->transport);
|
*presult = talloc_move(mem_ctx, &state->transport);
|
||||||
return NT_STATUS_OK;
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS rpc_transport_np_init(TALLOC_CTX *mem_ctx, struct cli_state *cli,
|
|
||||||
const struct ndr_interface_table *table,
|
|
||||||
struct rpc_cli_transport **presult)
|
|
||||||
{
|
|
||||||
TALLOC_CTX *frame = talloc_stackframe();
|
|
||||||
struct tevent_context *ev;
|
|
||||||
struct tevent_req *req;
|
|
||||||
NTSTATUS status = NT_STATUS_OK;
|
|
||||||
|
|
||||||
ev = samba_tevent_context_init(frame);
|
|
||||||
if (ev == NULL) {
|
|
||||||
status = NT_STATUS_NO_MEMORY;
|
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
|
|
||||||
req = rpc_transport_np_init_send(frame, ev, cli, table);
|
|
||||||
if (req == NULL) {
|
|
||||||
status = NT_STATUS_NO_MEMORY;
|
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!tevent_req_poll_ntstatus(req, ev, &status)) {
|
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
|
|
||||||
status = rpc_transport_np_init_recv(req, mem_ctx, presult);
|
|
||||||
fail:
|
|
||||||
TALLOC_FREE(frame);
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user