s3:events: make use of tevent_common_loop_wait()
authorStefan Metzmacher <metze@samba.org>
Mon, 16 Mar 2009 13:45:42 +0000 (14:45 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 17 Mar 2009 18:58:58 +0000 (19:58 +0100)
metze

source3/lib/events.c

index 8c56941829002030cbb654beb1fcc7d030c1e37b..d0374121cea63b6d1780f0325d1fb8e213334815 100644 (file)
@@ -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)