aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-03 18:28:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-03 18:28:28 +0100
commit03729690b7137c1bdbe8b1d3b770ef8493300126 (patch)
treea8b28ef350b245ba92ceabf1542c903a660e6c08 /src/libserver/cfg_rcl.h
parentb361af86b99c7e4b6e6f3fcd508b882ffb0c9d9e (diff)
downloadrspamd-03729690b7137c1bdbe8b1d3b770ef8493300126.tar.gz
rspamd-03729690b7137c1bdbe8b1d3b770ef8493300126.zip
Fix some minor warnings.
Diffstat (limited to 'src/libserver/cfg_rcl.h')
-rw-r--r--src/libserver/cfg_rcl.h32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/libserver/cfg_rcl.h b/src/libserver/cfg_rcl.h
index b18867cd1..92b266920 100644
--- a/src/libserver/cfg_rcl.h
+++ b/src/libserver/cfg_rcl.h
@@ -39,24 +39,26 @@ struct rspamd_rcl_section;
struct rspamd_config;
struct rspamd_rcl_default_handler_data;
+enum rspamd_rcl_flag {
+ RSPAMD_CL_FLAG_TIME_FLOAT = 0x1 << 0,
+ RSPAMD_CL_FLAG_TIME_TIMEVAL = 0x1 << 1,
+ RSPAMD_CL_FLAG_TIME_TIMESPEC = 0x1 << 2,
+ RSPAMD_CL_FLAG_TIME_INTEGER = 0x1 << 3,
+ RSPAMD_CL_FLAG_TIME_UINT_32 = 0x1 << 4,
+ RSPAMD_CL_FLAG_INT_16 = 0x1 << 5,
+ RSPAMD_CL_FLAG_INT_32 = 0x1 << 6,
+ RSPAMD_CL_FLAG_INT_64 = 0x1 << 7,
+ RSPAMD_CL_FLAG_UINT = 0x1 << 8,
+ RSPAMD_CL_FLAG_INT_SIZE = 0x1 << 9,
+ RSPAMD_CL_FLAG_STRING_PATH = 0x1 << 10,
+ RSPAMD_CL_FLAG_BOOLEAN_INVERSE = 0x1 << 11,
+ RSPAMD_CL_FLAG_STRING_LIST_HASH = 0x1 << 12
+};
+
struct rspamd_rcl_struct_parser {
gpointer user_struct;
goffset offset;
- enum {
- RSPAMD_CL_FLAG_TIME_FLOAT = 0x1 << 0,
- RSPAMD_CL_FLAG_TIME_TIMEVAL = 0x1 << 1,
- RSPAMD_CL_FLAG_TIME_TIMESPEC = 0x1 << 2,
- RSPAMD_CL_FLAG_TIME_INTEGER = 0x1 << 3,
- RSPAMD_CL_FLAG_TIME_UINT_32 = 0x1 << 4,
- RSPAMD_CL_FLAG_INT_16 = 0x1 << 5,
- RSPAMD_CL_FLAG_INT_32 = 0x1 << 6,
- RSPAMD_CL_FLAG_INT_64 = 0x1 << 7,
- RSPAMD_CL_FLAG_UINT = 0x1 << 8,
- RSPAMD_CL_FLAG_INT_SIZE = 0x1 << 9,
- RSPAMD_CL_FLAG_STRING_PATH = 0x1 << 10,
- RSPAMD_CL_FLAG_BOOLEAN_INVERSE = 0x1 << 11,
- RSPAMD_CL_FLAG_STRING_LIST_HASH = 0x1 << 12
- } flags;
+ enum rspamd_rcl_flag flags;
};
/**