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
/
fields.c
diff --git
a/lib/trace-ir/fields.c
b/lib/trace-ir/fields.c
index 8eadc75711f9e902fbe187ae9e90a99dacec7865..c769c8a014b1361d9a94b26c84c0f7a5d0b106a8 100644
(file)
--- a/
lib/trace-ir/fields.c
+++ b/
lib/trace-ir/fields.c
@@
-227,7
+227,8
@@
void init_field(struct bt_field *field, struct bt_field_class *fc,
BT_ASSERT(fc);
bt_object_init_unique(&field->base);
field->methods = methods;
BT_ASSERT(fc);
bt_object_init_unique(&field->base);
field->methods = methods;
- field->class = bt_object_get_ref(fc);
+ field->class = fc;
+ bt_object_get_no_null_check(fc);
}
static
}
static
This page took
0.023286 seconds
and
4
git commands to generate.