summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/echo.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-01-14 12:34:58 +0100
committerGünther Deschner <gd@samba.org>2014-01-16 16:22:52 +0100
commit040002523758e187d0485b07c87078bb3e371bed (patch)
tree096b17af07439917f55a34173096cec4d897ac80 /source4/torture/rpc/echo.c
parent095daba81d9799fa174e50b31d4e908ad2605786 (diff)
downloadsamba-040002523758e187d0485b07c87078bb3e371bed.tar.gz
s4:torture/rpc: avoid using dcerpc_event_context()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source4/torture/rpc/echo.c')
-rw-r--r--source4/torture/rpc/echo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c
index db6d2414a93..45a41d30b89 100644
--- a/source4/torture/rpc/echo.c
+++ b/source4/torture/rpc/echo.c
@@ -236,7 +236,6 @@ static bool test_sleep(struct torture_context *tctx,
struct timeval snd[ASYNC_COUNT];
struct timeval rcv[ASYNC_COUNT];
struct timeval diff[ASYNC_COUNT];
- struct tevent_context *ctx;
int total_done = 0;
struct dcerpc_binding_handle *b = p->binding_handle;
@@ -256,9 +255,8 @@ static bool test_sleep(struct torture_context *tctx,
tevent_req_set_callback(req[i], test_sleep_done, &done1[i]);
}
- ctx = dcerpc_event_context(p);
while (total_done < ASYNC_COUNT) {
- torture_assert(tctx, tevent_loop_once(ctx) == 0,
+ torture_assert(tctx, tevent_loop_once(tctx->ev) == 0,
"Event context loop failed");
for (i=0;i<ASYNC_COUNT;i++) {
if (done2[i] == false && done1[i] == true) {