Fix wbclient.c wrt tevent_req changes too.
authorSimo Sorce <idra@samba.org>
Mon, 2 Mar 2009 20:38:45 +0000 (15:38 -0500)
committerSimo Sorce <idra@samba.org>
Mon, 2 Mar 2009 20:38:45 +0000 (15:38 -0500)
source3/lib/wbclient.c

index b8d55a944a479edf92aaf295c8c02fff2a892be5..7034e668ed0917c7b7de0c1249067c63a07647c6 100644 (file)
@@ -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);