aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-07 09:34:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-07 09:45:16 +0100
commitc207930dc64a680cc9a1ae9075e66f9d963e32e4 (patch)
tree622d707a9f57dc2cd80d7ae85ca476c05960be2d /src/libutil/str_util.c
parent6970374fc3e1dca0f7a428470149e3952079cc61 (diff)
downloadrspamd-c207930dc64a680cc9a1ae9075e66f9d963e32e4.tar.gz
rspamd-c207930dc64a680cc9a1ae9075e66f9d963e32e4.zip
[Minor] Fix various warnings
Diffstat (limited to 'src/libutil/str_util.c')
-rw-r--r--src/libutil/str_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c
index ac7471ada..d32a0d4d1 100644
--- a/src/libutil/str_util.c
+++ b/src/libutil/str_util.c
@@ -265,7 +265,7 @@ rspamd_str_hash (gconstpointer key)
len = strlen ((const gchar *)key);
- return rspamd_cryptobox_fast_hash (key, len, rspamd_hash_seed ());
+ return (guint)rspamd_cryptobox_fast_hash (key, len, rspamd_hash_seed ());
}
gboolean
@@ -314,7 +314,7 @@ rspamd_ftok_hash (gconstpointer key)
{
const rspamd_ftok_t *f = key;
- return t1ha (f->begin, f->len, rspamd_hash_seed ());
+ return (guint)rspamd_cryptobox_fast_hash (f->begin, f->len, rspamd_hash_seed ());
}
gboolean
@@ -2768,7 +2768,7 @@ rspamd_str_regexp_escape (const gchar *pattern, gsize slen,
gchar *
-rspamd_str_make_utf_valid (const gchar *src, gsize slen, gsize *dstlen)
+rspamd_str_make_utf_valid (const guchar *src, gsize slen, gsize *dstlen)
{
GString *dst;
const gchar *last;