summaryrefslogtreecommitdiffstats
path: root/src/libutil/regexp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-19 18:43:03 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-19 18:43:03 +0000
commit033d4b2d749fca44e4b067f9a5486a289b61a95e (patch)
tree2602350841e54234dd41fa30c318f1d1a5d3964e /src/libutil/regexp.c
parent7fb50e6f4c0c000c52ac927c7a95f5d3349a8b8b (diff)
downloadrspamd-033d4b2d749fca44e4b067f9a5486a289b61a95e.tar.gz
rspamd-033d4b2d749fca44e4b067f9a5486a289b61a95e.zip
Use regexp hash functions for task re_cache.
Diffstat (limited to 'src/libutil/regexp.c')
-rw-r--r--src/libutil/regexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/regexp.c b/src/libutil/regexp.c
index b8bd4454c..bf1a1762d 100644
--- a/src/libutil/regexp.c
+++ b/src/libutil/regexp.c
@@ -436,7 +436,7 @@ rspamd_regexp_get_ud (rspamd_regexp_t *re)
return re->ud;
}
-static gboolean
+gboolean
rspamd_regexp_equal (gconstpointer a, gconstpointer b)
{
const guchar *ia = a, *ib = b;
@@ -444,7 +444,7 @@ rspamd_regexp_equal (gconstpointer a, gconstpointer b)
return (memcmp (ia, ib, sizeof (regexp_id_t)) == 0);
}
-static guint32
+guint32
rspamd_regexp_hash (gconstpointer a)
{
const guchar *ia = a;