projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: make `bt_attributes_get_count()` return uint64_t
[babeltrace.git]
/
src
/
lib
/
trace-ir
/
trace.c
diff --git
a/src/lib/trace-ir/trace.c
b/src/lib/trace-ir/trace.c
index 184fc0705f2dd6ea125aad2e73fb23a5748a1cb5..7a61040125a55d496e7d6878b4256b603afb6e06 100644
(file)
--- a/
src/lib/trace-ir/trace.c
+++ b/
src/lib/trace-ir/trace.c
@@
-242,7
+242,6
@@
void bt_trace_set_uuid(struct bt_trace *trace, bt_uuid uuid)
BT_LIB_LOGD("Set trace's UUID: %!+t", trace);
}
BT_LIB_LOGD("Set trace's UUID: %!+t", trace);
}
-BT_ASSERT_FUNC
static
bool trace_has_environment_entry(const struct bt_trace *trace, const char *name)
{
static
bool trace_has_environment_entry(const struct bt_trace *trace, const char *name)
{
@@
-333,12
+332,8
@@
end:
uint64_t bt_trace_get_environment_entry_count(const struct bt_trace *trace)
{
uint64_t bt_trace_get_environment_entry_count(const struct bt_trace *trace)
{
- int64_t ret;
-
BT_ASSERT_PRE_DEV_NON_NULL(trace, "Trace");
BT_ASSERT_PRE_DEV_NON_NULL(trace, "Trace");
- ret = bt_attributes_get_count(trace->environment);
- BT_ASSERT(ret >= 0);
- return (uint64_t) ret;
+ return bt_attributes_get_count(trace->environment);
}
void bt_trace_borrow_environment_entry_by_index_const(
}
void bt_trace_borrow_environment_entry_by_index_const(
This page took
0.02406 seconds
and
4
git commands to generate.