summaryrefslogtreecommitdiff
path: root/source3/torture/torture.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-03-17 14:19:25 +1100
committerAndrew Tridgell <tridge@samba.org>2009-03-17 14:19:25 +1100
commit467cc6927f57e36ce9b97131e72b79ef6e39a668 (patch)
tree7ba399896c9c4a7bcb81543bce30d06b0ffb1a1d /source3/torture/torture.c
parenta1ebb850209289734b12ea966b01d295d8fc436d (diff)
parent382d8069adcc49e351eef63d86036ae553b119a2 (diff)
downloadsamba-467cc6927f57e36ce9b97131e72b79ef6e39a668.tar.gz
samba-467cc6927f57e36ce9b97131e72b79ef6e39a668.tar.bz2
samba-467cc6927f57e36ce9b97131e72b79ef6e39a668.zip
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Diffstat (limited to 'source3/torture/torture.c')
-rw-r--r--source3/torture/torture.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index e2d1497b28..19849a84a8 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -5613,11 +5613,11 @@ static bool run_local_memcache(int dummy)
return ret;
}
-static void wbclient_done(struct async_req *req)
+static void wbclient_done(struct tevent_req *req)
{
wbcErr wbc_err;
struct winbindd_response *wb_resp;
- int *i = (int *)req->async.priv;
+ int *i = (int *)tevent_req_callback_data_void(req);
wbc_err = wb_trans_recv(req, req, &wb_resp);
TALLOC_FREE(req);
@@ -5654,14 +5654,13 @@ static bool run_local_wbclient(int dummy)
goto fail;
}
for (j=0; j<5; j++) {
- struct async_req *req;
+ struct tevent_req *req;
req = wb_trans_send(ev, ev, wb_ctx[i],
(j % 2) == 0, &wb_req);
if (req == NULL) {
goto fail;
}
- req->async.fn = wbclient_done;
- req->async.priv = &i;
+ tevent_req_set_callback(req, wbclient_done, &i);
}
}