X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Futils%2Fcounter%2Fcounter.c;h=0c2cd3cf14565d6c6720cdde78ca386a54217df7;hb=601b0d3c9a6bf91274d0f01ccdec7fecfe3ed310;hp=be831ef973db027ae0b4f299107fe38bf59c3cb5;hpb=da91b29ad2964b85601e25843f1dca92f6c97406;p=babeltrace.git diff --git a/plugins/utils/counter/counter.c b/plugins/utils/counter/counter.c index be831ef9..0c2cd3cf 100644 --- 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; - (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; }