]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveconf: Remove unnecessary "static" from variables
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 28 Apr 2023 13:12:08 +0000 (16:12 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 20 Nov 2023 12:21:55 +0000 (14:21 +0200)
src/config/doveconf.c

index bd990df7bb99c32983804de95a5fcffcbcaf3d80..6d1c5a598fcf8df34caeaae93c6889ea9a1f6b48 100644 (file)
@@ -557,7 +557,7 @@ config_dump_human_sections(struct ostream *output,
                           bool hide_passwords)
 {
        struct config_filter_parser *const *filters;
-       static struct config_dump_human_context *ctx;
+       struct config_dump_human_context *ctx;
        unsigned int indent;
        int ret = 0;
 
@@ -586,7 +586,7 @@ config_dump_human(const struct config_filter *filter,
                  enum config_dump_scope scope, const char *setting_name_filter,
                  bool hide_passwords)
 {
-       static struct config_dump_human_context *ctx;
+       struct config_dump_human_context *ctx;
        struct ostream *output;
        int ret;
 
@@ -614,7 +614,7 @@ config_dump_one(const struct config_filter *filter, bool hide_key,
                enum config_dump_scope scope, const char *setting_name_filter,
                bool hide_passwords)
 {
-       static struct config_dump_human_context *ctx;
+       struct config_dump_human_context *ctx;
        const char *str;
        size_t len;
        unsigned int section_idx = 0;