aboutsummaryrefslogtreecommitdiffstats
path: root/src/stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stats.c')
-rw-r--r--src/stats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stats.c b/src/stats.c
index b5adbf29..da8f3d39 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -187,10 +187,10 @@ void osmo_stats_reporter_free(struct osmo_stats_reporter *srep)
}
/*! Initilize the stats reporting module; call this once in your program
- * \param[in] ctx Talloc context from which stats related memory is allocated */
+ * \param[in] ctx UNUSED, only for legacy API compatibility */
void osmo_stats_init(void *ctx)
{
- osmo_stats_ctx = ctx;
+ osmo_stats_ctx = talloc_named_const(OTC_GLOBAL, 0, "stats");
osmo_stat_item_discard_all(&current_stat_item_index);
is_initialised = 1;