]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
stats: Change stats_settings to be static
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 20 Apr 2020 08:53:38 +0000 (11:53 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 20 Apr 2020 08:53:54 +0000 (11:53 +0300)
src/stats/main.c
src/stats/stats-common.h

index 4ebfbe4bd0491c7cb54d1379567b174732856ade..3f43e2ba3e92e1313d7ad81b40a9ed2d04e62638 100644 (file)
 #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;
index fd8fb53fecf78ec639f334dff24d26efc9ed34d0..09af424a98fbb2c0c61d0cec8520a16188cd58e4 100644 (file)
@@ -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;