s4-dns: dlz_bind9: Fix ipv6 updates
[samba.git] / source3 / torture / test_notify_online.c
index b9ebc00b54bd819dc75e3ee4a8f3abe8db0896f6..7f4f52111cdfa2da932a068c132e42a4280c3878 100644 (file)
@@ -77,7 +77,7 @@ static void notify_online_opened_dir(struct tevent_req *subreq)
                req, struct notify_online_state);
        NTSTATUS status;
 
-       status = cli_ntcreate_recv(subreq, &state->dnum);
+       status = cli_ntcreate_recv(subreq, &state->dnum, NULL);
        TALLOC_FREE(subreq);
        if (tevent_req_nterror(req, status)) {
                return;
@@ -131,7 +131,7 @@ static void notify_online_opened_file(struct tevent_req *subreq)
                req, struct notify_online_state);
        NTSTATUS status;
 
-       status = cli_ntcreate_recv(subreq, &state->fnum);
+       status = cli_ntcreate_recv(subreq, &state->fnum, NULL);
        TALLOC_FREE(subreq);
        if (tevent_req_nterror(req, status)) {
                return;
@@ -236,11 +236,11 @@ static NTSTATUS notify_online(struct cli_state *cli,
                              bool *got_notify)
 {
        TALLOC_CTX *frame = talloc_stackframe();
-       struct event_context *ev;
+       struct tevent_context *ev;
        struct tevent_req *req;
        NTSTATUS status = NT_STATUS_NO_MEMORY;
 
-       ev = event_context_init(frame);
+       ev = samba_tevent_context_init(frame);
        if (ev == NULL) {
                goto fail;
        }