]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Use tevent version of timeval_current_ofs()
authorVolker Lendecke <vl@samba.org>
Tue, 14 Jan 2020 12:02:27 +0000 (13:02 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 14 Jan 2020 19:17:28 +0000 (19:17 +0000)
We have tevent available anyway, use that infrastructure

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/server_id_watch.c

index d38241fbf10c9efc3ef951c1267f705c062165f3..27b1f8845b22d1f26e48bdca5bccd41a4631dd8b 100644 (file)
@@ -52,7 +52,8 @@ struct tevent_req *server_id_watch_send(TALLOC_CTX *mem_ctx,
                return tevent_req_post(req, ev);
        }
 
-       subreq = tevent_wakeup_send(state, ev, timeval_current_ofs(0, 500000));
+       subreq = tevent_wakeup_send(
+               state, ev, tevent_timeval_current_ofs(0, 500000));
        if (tevent_req_nomem(subreq, req)) {
                return tevent_req_post(req, ev);
        }
@@ -81,8 +82,8 @@ static void server_id_watch_waited(struct tevent_req *subreq)
                return;
        }
 
-       subreq = tevent_wakeup_send(state, state->ev,
-                                   timeval_current_ofs(0, 500000));
+       subreq = tevent_wakeup_send(
+               state, state->ev, tevent_timeval_current_ofs(0, 500000));
        if (tevent_req_nomem(subreq, req)) {
                return;
        }