From: Timo Sirainen Date: Mon, 20 Apr 2020 08:53:38 +0000 (+0300) Subject: stats: Change stats_settings to be static X-Git-Tag: 2.3.11.2~239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f02df811045ba84e53c87a7a64d8bb328d6e8e6;p=thirdparty%2Fdovecot%2Fcore.git stats: Change stats_settings to be static --- 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;