mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
lib: Use tevent version of timeval_current_ofs()
We have tevent available anyway, use that infrastructure Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
75ddd1d6ab
commit
4546aff887
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user