diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-29 08:58:52 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-29 08:58:52 +0100 |
commit | 41330a043b7881a4d1c66f835ec82878b6d1e7a3 (patch) | |
tree | d8f09c286ec017f0384b102e96b4b4393d78a146 /src/libserver | |
parent | a8c39008921156163832087cf12b2d0684f4ba6f (diff) | |
download | rspamd-41330a043b7881a4d1c66f835ec82878b6d1e7a3.tar.gz rspamd-41330a043b7881a4d1c66f835ec82878b6d1e7a3.zip |
[Minor] Use more portable constants for uint64_t
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/re_cache.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c index 894e13111..5882114f9 100644 --- a/src/libserver/re_cache.c +++ b/src/libserver/re_cache.c @@ -1177,35 +1177,36 @@ rspamd_re_cache_type_from_string (const char *str) h = XXH64 (str, strlen (str), 0xdeadbabe); switch (h) { - case 0x298b9c8a58887d44LLU: /* header */ + case G_GUINT64_CONSTANT(0x298b9c8a58887d44): /* header */ ret = RSPAMD_RE_HEADER; break; - case 0x467bfb5cd7ddf890LLU: /* rawheader */ + case G_GUINT64_CONSTANT(0x467bfb5cd7ddf890): /* rawheader */ ret = RSPAMD_RE_RAWHEADER; break; - case 0xda081341fb600389LLU: /* mime */ + case G_GUINT64_CONSTANT(0xda081341fb600389): /* mime */ ret = RSPAMD_RE_MIME; break; - case 0xc35831e067a8221dLLU: /* rawmime */ + case G_GUINT64_CONSTANT(0xc35831e067a8221d): /* rawmime */ ret = RSPAMD_RE_RAWMIME; break; - case 0xc625e13dbe636de2LLU: /* body */ - case 0xCCDEBA43518F721CULL: /* message */ + case G_GUINT64_CONSTANT(0xc625e13dbe636de2): /* body */ + case G_GUINT64_CONSTANT(0xCCDEBA43518F721C): /* message */ ret = RSPAMD_RE_BODY; break; - case 0x286edbe164c791d2LLU: /* url */ + case G_GUINT64_CONSTANT(0x286edbe164c791d2): /* url */ + case G_GUINT64_CONSTANT(0x7D9ACDF6685661A1): /* uri */ ret = RSPAMD_RE_URL; break; - case 0x796d62205a8778c7LLU: /* allheader */ + case G_GUINT64_CONSTANT(0x796d62205a8778c7): /* allheader */ ret = RSPAMD_RE_ALLHEADER; break; - case 0xa3c6c153b3b00a5eLLU: /* mimeheader */ + case G_GUINT64_CONSTANT(0xa3c6c153b3b00a5e): /* mimeheader */ ret = RSPAMD_RE_MIMEHEADER; break; - case 0x7794501506e604e9LLU: /* sabody */ + case G_GUINT64_CONSTANT(0x7794501506e604e9): /* sabody */ ret = RSPAMD_RE_SABODY; break; - case 0x28828962E7D2A05FULL: /* sarawbody */ + case G_GUINT64_CONSTANT(0x28828962E7D2A05F): /* sarawbody */ ret = RSPAMD_RE_SARAWBODY; break; default: |