summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_standard.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-03-12 09:33:26 +0100
committerStefan Metzmacher <metze@samba.org>2009-03-12 12:12:34 +0100
commit9932fd2d9af3c71262c5cca61c3b38809b952d95 (patch)
tree61c193958dffac8ec26d09c3f9450c41e44c033b /lib/tevent/tevent_standard.c
parent880d9d6d8c209c770185b9b1c9a3019cb56be763 (diff)
downloadsamba-9932fd2d9af3c71262c5cca61c3b38809b952d95.tar.gz
samba-9932fd2d9af3c71262c5cca61c3b38809b952d95.tar.bz2
samba-9932fd2d9af3c71262c5cca61c3b38809b952d95.zip
tevent: pass __location__ to tevent_loop_once/wait()
metze
Diffstat (limited to 'lib/tevent/tevent_standard.c')
-rw-r--r--lib/tevent/tevent_standard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tevent/tevent_standard.c b/lib/tevent/tevent_standard.c
index bbd5c5d785..73a45e8c20 100644
--- a/lib/tevent/tevent_standard.c
+++ b/lib/tevent/tevent_standard.c
@@ -534,7 +534,7 @@ static int std_event_loop_select(struct std_event_context *std_ev, struct timeva
/*
do a single event loop using the events defined in ev
*/
-static int std_event_loop_once(struct tevent_context *ev)
+static int std_event_loop_once(struct tevent_context *ev, const char *location)
{
struct std_event_context *std_ev = talloc_get_type(ev->additional_data,
struct std_event_context);
@@ -557,14 +557,14 @@ static int std_event_loop_once(struct tevent_context *ev)
/*
return on failure or (with 0) if all fd events are removed
*/
-static int std_event_loop_wait(struct tevent_context *ev)
+static int std_event_loop_wait(struct tevent_context *ev, const char *location)
{
struct std_event_context *std_ev = talloc_get_type(ev->additional_data,
struct std_event_context);
std_ev->exit_code = 0;
while (ev->fd_events && std_ev->exit_code == 0) {
- if (std_event_loop_once(ev) != 0) {
+ if (std_event_loop_once(ev, location) != 0) {
break;
}
}