tevent: make use of talloc_get_type_abort() in tevent_signal.c
authorStefan Metzmacher <metze@samba.org>
Thu, 5 Dec 2013 07:47:27 +0000 (08:47 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 11 Dec 2013 21:46:09 +0000 (22:46 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
lib/tevent/tevent_signal.c

index 8e13d7351f8e5a42869ae9531239f629613a6e31..cf5464f3a21800ee7c00be163e1c5c5836c19e1d 100644 (file)
@@ -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);