From 22946f3b05a7021ff05e4b21de1e56fd2d32bcce Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 4 Dec 2019 14:36:00 +0000 Subject: [Minor] Fix API function --- src/lua/lua_task.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3