diff options
author | Simo Sorce <idra@samba.org> | 2009-03-02 15:38:45 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2009-03-02 15:38:45 -0500 |
commit | 1ea0dca50a0fe724b2e0aaa908a51735e26131dd (patch) | |
tree | f5ab4388d4e561b5b8556ebfb1a6910c2a3b5ce7 /source3 | |
parent | 9cacb49eb623edc1a74c90f4fd407dce334e75e4 (diff) | |
download | samba-1ea0dca50a0fe724b2e0aaa908a51735e26131dd.tar.gz samba-1ea0dca50a0fe724b2e0aaa908a51735e26131dd.tar.bz2 samba-1ea0dca50a0fe724b2e0aaa908a51735e26131dd.zip |
Fix wbclient.c wrt tevent_req changes too.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/wbclient.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/lib/wbclient.c b/source3/lib/wbclient.c index b8d55a944a..7034e668ed 100644 --- a/source3/lib/wbclient.c +++ b/source3/lib/wbclient.c @@ -224,8 +224,7 @@ static struct async_req *wb_connect_send(TALLOC_CTX *mem_ctx, if (subreq == NULL) { goto nomem; } - subreq->async.fn = wbc_connect_connected; - subreq->async.private_data = result; + tevent_req_set_callback(subreq, wbc_connect_connected, result); if (!tevent_req_set_endtime(subreq, ev, timeval_current_ofs(30, 0))) { goto nomem; @@ -245,8 +244,8 @@ static struct async_req *wb_connect_send(TALLOC_CTX *mem_ctx, static void wbc_connect_connected(struct tevent_req *subreq) { - struct async_req *req = talloc_get_type_abort( - subreq->async.private_data, struct async_req); + struct async_req *req = + tevent_req_callback_data(subreq, struct async_req); int res, err; res = async_connect_recv(subreq, &err); |