diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-06 16:38:48 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-06 16:38:48 +0100 |
commit | 748225b8e91105b4da3df8aa00c0b2e116a30df8 (patch) | |
tree | d2e80384493bf45c0d2ea14afe64787268fe16fa /src/libutil | |
parent | 9eb519ef1f48d6d6353276491bdd3423720a0ed5 (diff) | |
download | rspamd-748225b8e91105b4da3df8aa00c0b2e116a30df8.tar.gz rspamd-748225b8e91105b4da3df8aa00c0b2e116a30df8.zip |
Fix plugins.
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/str_util.c | 12 | ||||
-rw-r--r-- | src/libutil/str_util.h | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index 6de4ef904..d92ceb1ad 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -215,12 +215,12 @@ rspamd_str_equal (gconstpointer v, gconstpointer v2) } gboolean -rspamd_fstring_icase_equal (gconstpointer v, gconstpointer v2) +rspamd_ftok_icase_equal (gconstpointer v, gconstpointer v2) { - const rspamd_fstring_t *f1 = v, *f2 = v2; + const rspamd_ftok_t *f1 = v, *f2 = v2; if (f1->len == f2->len && - g_ascii_strncasecmp (f1->str, f2->str, f1->len) == 0) { + g_ascii_strncasecmp (f1->begin, f2->begin, f1->len) == 0) { return TRUE; } @@ -229,11 +229,11 @@ rspamd_fstring_icase_equal (gconstpointer v, gconstpointer v2) guint -rspamd_fstring_icase_hash (gconstpointer key) +rspamd_ftok_icase_hash (gconstpointer key) { - const rspamd_fstring_t *f = key; + const rspamd_ftok_t *f = key; - return rspamd_icase_hash (f->str, f->len); + return rspamd_icase_hash (f->begin, f->len); } gboolean diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h index b6c8b2981..fdadc4811 100644 --- a/src/libutil/str_util.h +++ b/src/libutil/str_util.h @@ -53,8 +53,8 @@ gboolean rspamd_str_equal (gconstpointer v, gconstpointer v2); /* * Hash table utility functions for hashing fixed strings */ -guint rspamd_fstring_icase_hash (gconstpointer key); -gboolean rspamd_fstring_icase_equal (gconstpointer v, gconstpointer v2); +guint rspamd_ftok_icase_hash (gconstpointer key); +gboolean rspamd_ftok_icase_equal (gconstpointer v, gconstpointer v2); guint rspamd_gstring_icase_hash (gconstpointer key); gboolean rspamd_gstring_icase_equal (gconstpointer v, gconstpointer v2); |