diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-12-05 08:47:27 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-12-11 22:46:09 +0100 |
commit | 7bf5e6b181cc4ea23103ac3fc4f183ba183476b6 (patch) | |
tree | ce89d258a1d6a961f9769a68423d343926931012 /lib/tevent/tevent_signal.c | |
parent | fbdaf7481b81f021a560e366276c79be6680bce6 (diff) | |
download | samba-7bf5e6b181cc4ea23103ac3fc4f183ba183476b6.tar.gz samba-7bf5e6b181cc4ea23103ac3fc4f183ba183476b6.tar.xz samba-7bf5e6b181cc4ea23103ac3fc4f183ba183476b6.zip |
tevent: make use of talloc_get_type_abort() in tevent_signal.c
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'lib/tevent/tevent_signal.c')
-rw-r--r-- | lib/tevent/tevent_signal.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/tevent/tevent_signal.c b/lib/tevent/tevent_signal.c index 8e13d7351f..cf5464f3a2 100644 --- a/lib/tevent/tevent_signal.c +++ b/lib/tevent/tevent_signal.c @@ -170,9 +170,9 @@ static int tevent_common_signal_list_destructor(struct tevent_common_signal_list */ static int tevent_signal_destructor(struct tevent_signal *se) { - struct tevent_common_signal_list *sl; - sl = talloc_get_type(se->additional_data, - struct tevent_common_signal_list); + struct tevent_common_signal_list *sl = + talloc_get_type_abort(se->additional_data, + struct tevent_common_signal_list); if (se->event_ctx) { struct tevent_context *ev = se->event_ctx; @@ -480,9 +480,9 @@ int tevent_common_check_signal(struct tevent_context *ev) void tevent_cleanup_pending_signal_handlers(struct tevent_signal *se) { - struct tevent_common_signal_list *sl; - sl = talloc_get_type(se->additional_data, - struct tevent_common_signal_list); + struct tevent_common_signal_list *sl = + talloc_get_type_abort(se->additional_data, + struct tevent_common_signal_list); tevent_common_signal_list_destructor(sl); |