commit 65ee3ec: [Minor] Use unsigned to store flags not enum
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Oct 8 11:42:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-08 12:37:19 +0100
URL: https://github.com/rspamd/rspamd/commit/65ee3ec117e9b0d58d045f8ecd6bd505cc0e06e7 (HEAD -> master)
[Minor] Use unsigned to store flags not enum
---
src/libserver/cfg_file.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h
index 71d059873..f22b0cefc 100644
--- a/src/libserver/cfg_file.h
+++ b/src/libserver/cfg_file.h
@@ -105,11 +105,11 @@ enum lua_var_type {
};
enum rspamd_symbol_group_flags {
- RSPAMD_SYMBOL_GROUP_NORMAL = 0,
- RSPAMD_SYMBOL_GROUP_DISABLED = (1 << 0),
- RSPAMD_SYMBOL_GROUP_ONE_SHOT = (1 << 1),
- RSPAMD_SYMBOL_GROUP_UNGROUPED = (1 << 2),
- RSPAMD_SYMBOL_GROUP_PUBLIC = (1 << 3),
+ RSPAMD_SYMBOL_GROUP_NORMAL = 0u,
+ RSPAMD_SYMBOL_GROUP_DISABLED = (1u << 0u),
+ RSPAMD_SYMBOL_GROUP_ONE_SHOT = (1u << 1u),
+ RSPAMD_SYMBOL_GROUP_UNGROUPED = (1u << 2u),
+ RSPAMD_SYMBOL_GROUP_PUBLIC = (1u << 3u),
};
/**
@@ -121,7 +121,7 @@ struct rspamd_symbols_group {
gchar *description;
GHashTable *symbols;
gdouble max_score;
- enum rspamd_symbol_group_flags flags;
+ guint flags;
};
enum rspamd_symbol_flags {
More information about the Commits
mailing list