dovecot-2.1: stats: Add stats_ prefix to all settings.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Sep 4 20:11:52 EEST 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/c979efcc13cf
changeset: 13393:c979efcc13cf
user: Timo Sirainen <tss at iki.fi>
date: Sun Sep 04 20:11:33 2011 +0300
description:
stats: Add stats_ prefix to all settings.
diffstat:
src/stats/stats-settings.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 667b3e80acf5 -r c979efcc13cf src/stats/stats-settings.c
--- a/src/stats/stats-settings.c Sun Sep 04 19:00:47 2011 +0300
+++ b/src/stats/stats-settings.c Sun Sep 04 20:11:33 2011 +0300
@@ -55,9 +55,10 @@
.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),
More information about the dovecot-cvs
mailing list