aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-12-04 14:36:00 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-12-04 14:36:00 +0000
commit22946f3b05a7021ff05e4b21de1e56fd2d32bcce (patch)
tree55591cddc17ce695af51269ff19d0b5337984835 /src
parent07933519f3925e439406b8ccc391540c2f0a3c1f (diff)
downloadrspamd-22946f3b05a7021ff05e4b21de1e56fd2d32bcce.tar.gz
rspamd-22946f3b05a7021ff05e4b21de1e56fd2d32bcce.zip
[Minor] Fix API function
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_task.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 26ad15dec..2354cb546 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -4637,10 +4637,15 @@ struct tokens_foreach_cbdata {
};
static void
-tokens_foreach_cb (gint id, const gchar *sym, gint flags, gpointer ud)
+tokens_foreach_cb (struct rspamd_symcache_item *item, gpointer ud)
{
struct tokens_foreach_cbdata *cbd = ud;
struct rspamd_symbol_result *s;
+ gint flags;
+ const gchar *sym;
+
+ sym = rspamd_symcache_item_name (item);
+ flags = rspamd_symcache_item_flags (item);
if (flags & SYMBOL_TYPE_NOSTAT) {
return;