]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Improve style of enum definition
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 28 Mar 2017 16:46:01 +0000 (17:46 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 28 Mar 2017 16:46:01 +0000 (17:46 +0100)
src/libserver/symbols_cache.c

index f0959a15e6ec2738fc061f5fb5f5d81f2d3f4cf0..b0f63134a4c0087586f19ebbe56ee8d4461ec2c7 100644 (file)
@@ -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;