summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2012-06-07 12:26:02 +1000
committerStefan Metzmacher <metze@samba.org>2012-06-08 19:00:01 +0200
commit653cb76edfc3e9c2c426a6f8ec6ecfb253bd54d9 (patch)
treed4f100eb20edbb7472b2a4195a72eaa271438da4 /lib
parent41d830ea4fb8bf7cb20e08607ba9db9f53c03880 (diff)
downloadsamba-653cb76edfc3e9c2c426a6f8ec6ecfb253bd54d9.tar.gz
samba-653cb76edfc3e9c2c426a6f8ec6ecfb253bd54d9.tar.bz2
samba-653cb76edfc3e9c2c426a6f8ec6ecfb253bd54d9.zip
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 <martin@meltin.net> Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/tevent/tevent_poll.c4
1 files changed, 4 insertions, 0 deletions
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;
}