aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-04-06 11:53:42 +0200
committerlaforge <laforge@osmocom.org>2021-04-07 18:39:05 +0000
commitd4393608a4102acc666622d7e233f3586ba27d6e (patch)
tree67452dbb3368eb29b7dccbb135e813d12a7f5e7a
parent2623fca8ad6f1617c407d270e9be4acc96499c2b (diff)
stats: have_value is a bool, not int
-rw-r--r--src/stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stats.c b/src/stats.c
index 91cf839b..411ecff9 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -709,7 +709,7 @@ static int osmo_stat_item_handler(
{
struct osmo_stats_reporter *srep;
int32_t value;
- int have_value;
+ bool have_value;
have_value = osmo_stat_item_get_next(item, &item->stats_next_id, &value) > 0;
if (!have_value) {