From: Timo Sirainen Date: Mon, 29 May 2023 20:30:34 +0000 (+0300) Subject: lib-settings: Move struct settings_mmap_pool earlier X-Git-Tag: 2.4.1~1607 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6969bd2a97ebae9545e57ec718f8d04253b6d81;p=thirdparty%2Fdovecot%2Fcore.git lib-settings: Move struct settings_mmap_pool earlier --- diff --git a/src/lib-settings/settings.c b/src/lib-settings/settings.c index 7719de8ba7..5549d040e9 100644 --- a/src/lib-settings/settings.c +++ b/src/lib-settings/settings.c @@ -13,6 +13,20 @@ #include "settings-parser.h" #include "settings.h" +struct settings_mmap_pool { + struct pool pool; + int refcount; + + struct settings_mmap_pool *prev, *next; + + const char *source_filename; + unsigned int source_linenum; + + pool_t parent_pool; + struct settings_mmap *mmap; /* NULL for unit tests */ + struct settings_root *root; +}; + struct settings_override { int type; bool append; @@ -713,20 +727,6 @@ bool settings_has_mmap(struct settings_root *root) return root->mmap != NULL; } -struct settings_mmap_pool { - struct pool pool; - int refcount; - - struct settings_mmap_pool *prev, *next; - - const char *source_filename; - unsigned int source_linenum; - - pool_t parent_pool; - struct settings_mmap *mmap; /* NULL for unit tests */ - struct settings_root *root; -}; - static const char *settings_mmap_pool_get_name(pool_t pool) { struct settings_mmap_pool *mpool =