mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
s3:events: make use of tevent_common_loop_wait()
metze
This commit is contained in:
parent
940e61846e
commit
d27be1d5fa
@ -181,17 +181,6 @@ static int s3_event_loop_once(struct tevent_context *ev, const char *location)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int s3_event_loop_wait(struct tevent_context *ev, const char *location)
|
|
||||||
{
|
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
while (ret == 0) {
|
|
||||||
ret = s3_event_loop_once(ev, location);
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
void event_context_reinit(struct tevent_context *ev)
|
void event_context_reinit(struct tevent_context *ev)
|
||||||
{
|
{
|
||||||
tevent_common_context_destructor(ev);
|
tevent_common_context_destructor(ev);
|
||||||
@ -246,7 +235,7 @@ static const struct tevent_ops s3_event_ops = {
|
|||||||
.add_timer = tevent_common_add_timer,
|
.add_timer = tevent_common_add_timer,
|
||||||
.add_signal = tevent_common_add_signal,
|
.add_signal = tevent_common_add_signal,
|
||||||
.loop_once = s3_event_loop_once,
|
.loop_once = s3_event_loop_once,
|
||||||
.loop_wait = s3_event_loop_wait,
|
.loop_wait = tevent_common_loop_wait,
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool s3_tevent_init(void)
|
static bool s3_tevent_init(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user