summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-02-28 17:02:45 +0100
committerJeremy Allison <jra@samba.org>2013-03-01 11:59:33 -0800
commitf75fd905f72fff28cc2d8f5fc4e3240b039d3446 (patch)
tree2d7374defa81598b72bd6311b999445b2753e68e /lib
parent8e3ef659f876573bd7abb7d0e707369157232125 (diff)
downloadsamba-f75fd905f72fff28cc2d8f5fc4e3240b039d3446.tar.gz
samba-f75fd905f72fff28cc2d8f5fc4e3240b039d3446.tar.bz2
samba-f75fd905f72fff28cc2d8f5fc4e3240b039d3446.zip
tevent: use tevent_poll_event_add_fd_internal() in poll_event_add_fd()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/tevent/tevent_poll.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tevent/tevent_poll.c b/lib/tevent/tevent_poll.c
index 0928cbd6cb..6e1c5c39f2 100644
--- a/lib/tevent/tevent_poll.c
+++ b/lib/tevent/tevent_poll.c
@@ -308,8 +308,7 @@ static struct tevent_fd *poll_event_add_fd(struct tevent_context *ev,
fde->additional_flags = UINT64_MAX;
fde->additional_data = NULL;
- DLIST_ADD(poll_ev->fresh, fde);
- talloc_set_destructor(fde, poll_fresh_fde_destructor);
+ tevent_poll_event_add_fd_internal(ev, fde);
poll_event_wake_pollthread(poll_ev);
/*