Values API: standardize parameters and return values
[babeltrace.git] / plugins / utils / counter / counter.c
index be831ef973db027ae0b4f299107fe38bf59c3cb5..0c2cd3cf14565d6c6720cdde78ca386a54217df7 100644 (file)
@@ -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;
 
-               (void) bt_value_integer_get(step, &val);
-
+               val = bt_value_integer_get(step);
                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;
 
-               (void) bt_value_bool_get(hide_zero, &val);
+               val = bt_value_bool_get(hide_zero);
                counter->hide_zero = (bool) val;
        }
 
This page took 0.035156 seconds and 4 git commands to generate.