From: Timo Sirainen Date: Sun, 4 Sep 2011 17:11:33 +0000 (+0300) Subject: stats: Add stats_ prefix to all settings. X-Git-Tag: 2.1.alpha2~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47ca156ced59d251e29fa2c5386b8b01a909ea84;p=thirdparty%2Fdovecot%2Fcore.git stats: Add stats_ prefix to all settings. --- diff --git a/src/stats/stats-settings.c b/src/stats/stats-settings.c index 41f2eb87fe..9d88685260 100644 --- a/src/stats/stats-settings.c +++ b/src/stats/stats-settings.c @@ -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),