From 1554f80f5e271ed2ffb918127a234a3804cedef4 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 11 Nov 2016 15:06:06 +0100 Subject: statsd: Fix compiler warning (int32_t vs. int64_t) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the following compiler warning: stats_statsd.c: In function ‘osmo_stats_reporter_create_statsd’: stats_statsd.c:54:18: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] srep->send_item = osmo_stats_reporter_statsd_send_item; Change-Id: Id36914906e0982f6ac092a311210727de66b343a --- src/stats.c | 4 ++-- src/stats_statsd.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/stats.c b/src/stats.c index 5f1d028b..1efc8cd8 100644 --- a/src/stats.c +++ b/src/stats.c @@ -62,7 +62,7 @@ static int osmo_stats_reporter_log_send_counter(struct osmo_stats_reporter *srep int64_t value, int64_t delta); static int osmo_stats_reporter_log_send_item(struct osmo_stats_reporter *srep, const struct osmo_stat_item_group *statg, - const struct osmo_stat_item_desc *desc, int value); + const struct osmo_stat_item_desc *desc, int64_t value); static int update_srep_config(struct osmo_stats_reporter *srep) { @@ -429,7 +429,7 @@ static int osmo_stats_reporter_log_send_counter(struct osmo_stats_reporter *srep static int osmo_stats_reporter_log_send_item(struct osmo_stats_reporter *srep, const struct osmo_stat_item_group *statg, - const struct osmo_stat_item_desc *desc, int value) + const struct osmo_stat_item_desc *desc, int64_t value) { return osmo_stats_reporter_log_send(srep, "i", statg->desc->group_name_prefix, statg->idx, diff --git a/src/stats_statsd.c b/src/stats_statsd.c index 3cecec30..8b53881e 100644 --- a/src/stats_statsd.c +++ b/src/stats_statsd.c @@ -32,6 +32,7 @@ #include #include #include +#include static int osmo_stats_reporter_statsd_send_counter(struct osmo_stats_reporter *srep, const struct rate_ctr_group *ctrg, -- cgit v1.2.3