]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix API function
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 4 Dec 2019 14:36:00 +0000 (14:36 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 4 Dec 2019 14:36:00 +0000 (14:36 +0000)
src/lua/lua_task.c

index 26ad15dec018fe6d0b43542f95627025c9f0767f..2354cb546dd4c3613bd2a471b4f76251dd7cb54a 100644 (file)
@@ -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;