projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Values API: standardize parameters and return values
[babeltrace.git]
/
plugins
/
utils
/
counter
/
counter.c
diff --git
a/plugins/utils/counter/counter.c
b/plugins/utils/counter/counter.c
index be831ef973db027ae0b4f299107fe38bf59c3cb5..0c2cd3cf14565d6c6720cdde78ca386a54217df7 100644
(file)
--- a/
plugins/utils/counter/counter.c
+++ b/
plugins/utils/counter/counter.c
@@
-144,8
+144,7
@@
enum bt_component_status counter_init(struct bt_private_component *component,
if (step && bt_value_is_integer(step)) {
int64_t val;
if (step && bt_value_is_integer(step)) {
int64_t val;
- (void) bt_value_integer_get(step, &val);
-
+ val = bt_value_integer_get(step);
if (val >= 0) {
counter->step = (uint64_t) val;
}
if (val >= 0) {
counter->step = (uint64_t) val;
}
@@
-155,7
+154,7
@@
enum bt_component_status counter_init(struct bt_private_component *component,
if (hide_zero && bt_value_is_bool(hide_zero)) {
bt_bool val;
if (hide_zero && bt_value_is_bool(hide_zero)) {
bt_bool val;
-
(void) bt_value_bool_get(hide_zero, &val
);
+
val = bt_value_bool_get(hide_zero
);
counter->hide_zero = (bool) val;
}
counter->hide_zero = (bool) val;
}
This page took
0.023471 seconds
and
4
git commands to generate.