From 653cb76edfc3e9c2c426a6f8ec6ecfb253bd54d9 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 7 Jun 2012 12:26:02 +1000 Subject: lib/tevent: In poll_event_context, add a pointer back to the tevent_context This makes it consistent with the other backends. Signed-off-by: Martin Schwenke Signed-off-by: Stefan Metzmacher --- lib/tevent/tevent_poll.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/tevent') diff --git a/lib/tevent/tevent_poll.c b/lib/tevent/tevent_poll.c index d2e45c88be..2e202aa7ec 100644 --- a/lib/tevent/tevent_poll.c +++ b/lib/tevent/tevent_poll.c @@ -30,6 +30,9 @@ #include "tevent_internal.h" struct poll_event_context { + /* a pointer back to the generic event_context */ + struct tevent_context *ev; + /* * These two arrays are maintained together. */ @@ -52,6 +55,7 @@ static int poll_event_context_init(struct tevent_context *ev) if (poll_ev == NULL) { return -1; } + poll_ev->ev = ev; ev->additional_data = poll_ev; return 0; } -- cgit