summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-03-16 14:45:42 +0100
committerStefan Metzmacher <metze@samba.org>2009-03-17 19:58:58 +0100
commitd27be1d5fa3fdcaac07b527ad14b0d10ef27c0bb (patch)
tree0d58bf76a9b0b184adb5b51a217792212c82e83e
parent940e61846e97ba62153d5b977b0823f196607743 (diff)
downloadsamba-d27be1d5fa3fdcaac07b527ad14b0d10ef27c0bb.tar.gz
samba-d27be1d5fa3fdcaac07b527ad14b0d10ef27c0bb.tar.bz2
samba-d27be1d5fa3fdcaac07b527ad14b0d10ef27c0bb.zip
s3:events: make use of tevent_common_loop_wait()
metze
-rw-r--r--source3/lib/events.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/source3/lib/events.c b/source3/lib/events.c
index 8c56941829..d0374121ce 100644
--- a/source3/lib/events.c
+++ b/source3/lib/events.c
@@ -181,17 +181,6 @@ static int s3_event_loop_once(struct tevent_context *ev, const char *location)
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)
{
tevent_common_context_destructor(ev);
@@ -246,7 +235,7 @@ static const struct tevent_ops s3_event_ops = {
.add_timer = tevent_common_add_timer,
.add_signal = tevent_common_add_signal,
.loop_once = s3_event_loop_once,
- .loop_wait = s3_event_loop_wait,
+ .loop_wait = tevent_common_loop_wait,
};
static bool s3_tevent_init(void)