From: Vsevolod Stakhov Date: Tue, 28 Mar 2017 16:46:01 +0000 (+0100) Subject: [Minor] Improve style of enum definition X-Git-Tag: 1.5.5~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aae8be4c65669d6f3a5ac5825d696d5a4ac6dbad;p=thirdparty%2Frspamd.git [Minor] Improve style of enum definition --- diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index f0959a15e6..b0f63134a4 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -145,18 +145,20 @@ struct delayed_cache_condition { lua_State *L; }; +enum rspamd_cache_savepoint_stage { + RSPAMD_CACHE_PASS_INIT = 0, + RSPAMD_CACHE_PASS_PREFILTERS, + RSPAMD_CACHE_PASS_WAIT_PREFILTERS, + RSPAMD_CACHE_PASS_FILTERS, + RSPAMD_CACHE_PASS_WAIT_FILTERS, + RSPAMD_CACHE_PASS_POSTFILTERS, + RSPAMD_CACHE_PASS_WAIT_POSTFILTERS, + RSPAMD_CACHE_PASS_DONE, +}; + struct cache_savepoint { guchar *processed_bits; - enum { - RSPAMD_CACHE_PASS_INIT = 0, - RSPAMD_CACHE_PASS_PREFILTERS, - RSPAMD_CACHE_PASS_WAIT_PREFILTERS, - RSPAMD_CACHE_PASS_FILTERS, - RSPAMD_CACHE_PASS_WAIT_FILTERS, - RSPAMD_CACHE_PASS_POSTFILTERS, - RSPAMD_CACHE_PASS_WAIT_POSTFILTERS, - RSPAMD_CACHE_PASS_DONE, - } pass; + enum rspamd_cache_savepoint_stage pass; guint version; struct rspamd_metric_result *rs; gdouble lim;