From: Volker Lendecke Date: Tue, 14 Jan 2020 12:02:27 +0000 (+0100) Subject: lib: Use tevent version of timeval_current_ofs() X-Git-Tag: ldb-2.1.0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4546aff887c3bf9babb663f014d147dc2052a463;p=thirdparty%2Fsamba.git lib: Use tevent version of timeval_current_ofs() We have tevent available anyway, use that infrastructure Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/server_id_watch.c b/source3/lib/server_id_watch.c index d38241fbf10..27b1f8845b2 100644 --- a/source3/lib/server_id_watch.c +++ b/source3/lib/server_id_watch.c @@ -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; }