diff options
author | Volker Lendecke <vl@samba.org> | 2009-03-16 20:38:11 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-03-16 20:45:55 +0100 |
commit | 05b49fd4c8aaf779b98eb2eabb860295dc1300b9 (patch) | |
tree | 2887ea8cd100d73b332bb1a06229a0dfdf4d6bbc /source3/torture | |
parent | 1624b58beb4b3278acf7de721392ccc7dda65013 (diff) | |
download | samba-05b49fd4c8aaf779b98eb2eabb860295dc1300b9.tar.gz samba-05b49fd4c8aaf779b98eb2eabb860295dc1300b9.tar.bz2 samba-05b49fd4c8aaf779b98eb2eabb860295dc1300b9.zip |
Convert wb_trans to tevent_req
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/torture.c | 9 |
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); } } |