Attempt to fix the build
authorVolker Lendecke <vl@samba.org>
Mon, 2 Mar 2009 19:10:13 +0000 (20:10 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 2 Mar 2009 19:17:40 +0000 (20:17 +0100)
Simo, with which compiler did you build this? I'd be curious to learn about the
compiler settings that make this build.

Thanks,

Volker

source3/lib/wb_reqtrans.c

index 63a25fb896369b326c26eafb65908c4278b74aab..222b64667ce33cd20c6c394276d08837e08ade2c 100644 (file)
@@ -212,7 +212,7 @@ struct async_req *wb_req_write_send(TALLOC_CTX *mem_ctx,
        if (subreq == NULL) {
                goto fail;
        }
-       tevent_req_set_callback(wb_req_write_done, result);
+       tevent_req_set_callback(subreq, wb_req_write_done, result);
        return result;
 
  fail:
@@ -375,7 +375,7 @@ struct async_req *wb_resp_write_send(TALLOC_CTX *mem_ctx,
 static void wb_resp_write_done(struct tevent_req *subreq)
 {
        struct async_req *req =
-               tevent_re_callback_data(subreq, struct async_req);
+               tevent_req_callback_data(subreq, struct async_req);
        int err;
        ssize_t ret;