diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-01-15 09:15:34 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-01-17 08:48:25 +0100 |
commit | 494e57d913ba2502b9a4bd3172228949590e0ae6 (patch) | |
tree | f96b051fd8ef274936050261586bfcd872d7b80f /source3 | |
parent | 85db5c9f8f76822999765650def55b8342ef6244 (diff) | |
download | samba-494e57d913ba2502b9a4bd3172228949590e0ae6.tar.gz samba-494e57d913ba2502b9a4bd3172228949590e0ae6.tar.bz2 samba-494e57d913ba2502b9a4bd3172228949590e0ae6.zip |
s3:torture: use dcerpc_echo_X() functions
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/torture/test_async_echo.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/torture/test_async_echo.c b/source3/torture/test_async_echo.c index 13d4679bc9..dec5e748fe 100644 --- a/source3/torture/test_async_echo.c +++ b/source3/torture/test_async_echo.c @@ -19,15 +19,15 @@ #include "includes.h" #include "torture/proto.h" -#include "librpc/gen_ndr/cli_echo.h" +#include "librpc/gen_ndr/ndr_echo_c.h" static void rpccli_sleep_done(struct tevent_req *req) { int *done = (int *)tevent_req_callback_data_void(req); NTSTATUS status; - uint32_t result; + uint32_t result = UINT32_MAX; - status = rpccli_echo_TestSleep_recv(req, talloc_tos(), &result); + status = dcerpc_echo_TestSleep_recv(req, talloc_tos(), &result); TALLOC_FREE(req); printf("sleep returned %s, %d\n", nt_errstr(status), (int)result); *done -= 1; @@ -60,6 +60,7 @@ bool run_async_echo(int dummy) { struct cli_state *cli = NULL; struct rpc_pipe_client *p; + struct dcerpc_binding_handle *b; struct tevent_context *ev; struct tevent_req *req; NTSTATUS status; @@ -85,10 +86,11 @@ bool run_async_echo(int dummy) printf("Could not open echo pipe: %s\n", nt_errstr(status)); goto fail; } + b = p->binding_handle; num_reqs = 0; - req = rpccli_echo_TestSleep_send(ev, ev, p, 15); + req = dcerpc_echo_TestSleep_send(ev, ev, b, 15); if (req == NULL) { printf("rpccli_echo_TestSleep_send failed\n"); goto fail; |