From 6f02df811045ba84e53c87a7a64d8bb328d6e8e6 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 20 Apr 2020 11:53:38 +0300 Subject: [PATCH] stats: Change stats_settings to be static --- src/stats/main.c | 3 ++- src/stats/stats-common.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stats/main.c b/src/stats/main.c index 4ebfbe4bd0..3f43e2ba3e 100644 --- a/src/stats/main.c +++ b/src/stats/main.c @@ -13,10 +13,11 @@ #include "client-reader.h" #include "client-http.h" -const struct stats_settings *stats_settings; struct stats_metrics *stats_metrics; time_t stats_startup_time; +static const struct stats_settings *stats_settings; + static bool client_is_writer(const char *path) { const char *name, *suffix; diff --git a/src/stats/stats-common.h b/src/stats/stats-common.h index fd8fb53fec..09af424a98 100644 --- a/src/stats/stats-common.h +++ b/src/stats/stats-common.h @@ -4,7 +4,6 @@ #include "lib.h" #include "stats-settings.h" -extern const struct stats_settings *stats_settings; extern struct stats_metrics *stats_metrics; extern time_t stats_startup_time; -- 2.47.3