projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: bt_object_{get,put}_ref(): accept a `const` parameter
[babeltrace.git]
/
lib
/
trace-ir
/
packet.c
diff --git
a/lib/trace-ir/packet.c
b/lib/trace-ir/packet.c
index 983887c42ebe1166cd5a8612cf48d7f2e8ad1799..52f462a46d10f30b113f15744970ed2c5b310dac 100644
(file)
--- a/
lib/trace-ir/packet.c
+++ b/
lib/trace-ir/packet.c
@@
-267,7
+267,8
@@
struct bt_packet *bt_packet_new(struct bt_stream *stream)
bt_object_init_shared(&packet->base,
(bt_object_release_func) bt_packet_recycle);
bt_object_init_shared(&packet->base,
(bt_object_release_func) bt_packet_recycle);
- packet->stream = bt_object_get_ref(stream);
+ packet->stream = stream;
+ bt_object_get_no_null_check(stream);
trace = bt_stream_class_borrow_trace_inline(stream->class);
BT_ASSERT(trace);
trace = bt_stream_class_borrow_trace_inline(stream->class);
BT_ASSERT(trace);
This page took
0.022895 seconds
and
4
git commands to generate.