From: Martin Schwenke Date: Thu, 7 Jun 2012 02:26:02 +0000 (+1000) Subject: lib/tevent: In poll_event_context, add a pointer back to the tevent_context X-Git-Tag: tevent-0.9.16~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=653cb76edfc3e9c2c426a6f8ec6ecfb253bd54d9;p=thirdparty%2Fsamba.git 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 --- diff --git a/lib/tevent/tevent_poll.c b/lib/tevent/tevent_poll.c index d2e45c88bea..2e202aa7ec2 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; }