summaryrefslogtreecommitdiff
path: root/source4/torture/raw/composite.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-22 21:30:13 +0200
committerStefan Metzmacher <metze@samba.org>2011-11-29 16:00:08 +0100
commit511dc9358d8954f9ef04c01fb7cc3f776625c1f2 (patch)
tree5d781d27cc69ee8159d2ad1b5ad41e3d5507409f /source4/torture/raw/composite.c
parent13dbef241b24d54c7e8793ff81090614393d76ad (diff)
downloadsamba-511dc9358d8954f9ef04c01fb7cc3f776625c1f2.tar.gz
samba-511dc9358d8954f9ef04c01fb7cc3f776625c1f2.tar.bz2
samba-511dc9358d8954f9ef04c01fb7cc3f776625c1f2.zip
s4:torture: use tctx->ev as event context for polling
metze
Diffstat (limited to 'source4/torture/raw/composite.c')
-rw-r--r--source4/torture/raw/composite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/raw/composite.c b/source4/torture/raw/composite.c
index ee3bf7260d..2a28b9d50e 100644
--- a/source4/torture/raw/composite.c
+++ b/source4/torture/raw/composite.c
@@ -88,7 +88,7 @@ static bool test_loadfile(struct smbcli_state *cli, struct torture_context *tctx
printf("waiting for completion\n");
while (*count != num_ops) {
- tevent_loop_once(cli->transport->socket->event.ctx);
+ tevent_loop_once(tctx->ev);
if (torture_setting_bool(tctx, "progress", true)) {
printf("(%s) count=%d\r", __location__, *count);
fflush(stdout);
@@ -170,7 +170,7 @@ static bool test_fetchfile(struct smbcli_state *cli, struct torture_context *tct
printf("Testing parallel fetchfile with %d ops\n", torture_numops);
- event_ctx = cli->transport->socket->event.ctx;
+ event_ctx = tctx->ev;
c = talloc_array(tctx, struct composite_context *, torture_numops);
for (i=0; i<torture_numops; i++) {