projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib: update and simplify the `bt_object` API
[babeltrace.git]
/
lib
/
ctf-ir
/
packet.c
diff --git
a/lib/ctf-ir/packet.c
b/lib/ctf-ir/packet.c
index 232d5bd8f2ba36002e9df72ac6f2bf2501ca4a93..227a7fd9c959776e19f0d5ede7f8a84a5f1e431e 100644
(file)
--- a/
lib/ctf-ir/packet.c
+++ b/
lib/ctf-ir/packet.c
@@
-221,7
+221,8
@@
struct bt_packet *bt_packet_new(struct bt_stream *stream)
goto end;
}
- bt_object_init(packet, (bt_object_release_func) bt_packet_recycle);
+ bt_object_init_shared(&packet->base,
+ (bt_object_release_func) bt_packet_recycle);
packet->stream = bt_get(stream);
if (trace->common.packet_header_field_type) {
This page took
0.023373 seconds
and
4
git commands to generate.