diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-12-05 08:46:47 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-12-11 22:46:09 +0100 |
commit | fb06f0e3d38a0cd2d6a55e93c993763adb7cf278 (patch) | |
tree | 5a0bb998cdc7783f330ace605584e01face6fd49 /lib/tevent | |
parent | 8e44c2f96397a4f8cf945bcc810e3a1776d86a08 (diff) | |
download | samba-fb06f0e3d38a0cd2d6a55e93c993763adb7cf278.tar.gz |
tevent: use talloc_get_type_abort() in the documentation examples
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'lib/tevent')
-rw-r--r-- | lib/tevent/doc/tevent_events.dox | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tevent/doc/tevent_events.dox b/lib/tevent/doc/tevent_events.dox index 8e350d2b93e..d56af25496c 100644 --- a/lib/tevent/doc/tevent_events.dox +++ b/lib/tevent/doc/tevent_events.dox @@ -45,7 +45,7 @@ struct state { static void callback(struct tevent_context *ev, struct tevent_timer *tim, struct timeval current_time, void *private_data) { - struct state *data = talloc_get_type(private_data, struct state); + struct state *data = talloc_get_type_abort(private_data, struct state); struct tevent_timer *time_event; struct timeval schedule; @@ -153,7 +153,7 @@ struct info_struct { static void foo(struct tevent_context *ev, struct tevent_immediate *im, void *private_data) { - struct info_struct *data = talloc_get_type(private_data, struct info_struct); + struct info_struct *data = talloc_get_type_abort(private_data, struct info_struct); printf("Data value: %d\n", data->counter); } |