]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
stats: Add stats_ prefix to all settings.
authorTimo Sirainen <tss@iki.fi>
Sun, 4 Sep 2011 17:11:33 +0000 (20:11 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 4 Sep 2011 17:11:33 +0000 (20:11 +0300)
src/stats/stats-settings.c

index 41f2eb87feaaea988330b1ec5fbb6ef085b56956..9d88685260c8cdc333deb22537b04cadb94b1d49 100644 (file)
@@ -55,9 +55,10 @@ struct service_settings stats_service_settings = {
        .inet_listeners = ARRAY_INIT
 };
 
+/* we're kind of kludging here to avoid "stats_" prefix in the struct fields */
 #undef DEF
 #define DEF(type, name) \
-       { type, #name, offsetof(struct stats_settings, name), NULL }
+       { type, "stats_"#name, offsetof(struct stats_settings, name), NULL }
 
 static const struct setting_define stats_setting_defines[] = {
        DEF(SET_SIZE, memory_limit),