summaryrefslogtreecommitdiffstats
path: root/src/plugins/dkim_check.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-05-09 21:25:23 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-05-09 21:25:23 +0100
commit22f603e83dd4fe3fc6d3e9e18b19bc87d57af235 (patch)
treececceb5ebef41c6219071b4ea55c5d5c9b492294 /src/plugins/dkim_check.c
parentd0d9673d38dbb2e8aa93ae60bbbc9193e9646902 (diff)
downloadrspamd-22f603e83dd4fe3fc6d3e9e18b19bc87d57af235.tar.gz
rspamd-22f603e83dd4fe3fc6d3e9e18b19bc87d57af235.zip
[Rework] Use dynamic items for calling callbacks
It is trivial to get a static item by dynamic item by just subtracting pointers. So there is no need in other complications.
Diffstat (limited to 'src/plugins/dkim_check.c')
-rw-r--r--src/plugins/dkim_check.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c
index 039cdf718..be069a023 100644
--- a/src/plugins/dkim_check.c
+++ b/src/plugins/dkim_check.c
@@ -96,15 +96,15 @@ struct dkim_check_result {
struct rspamd_dkim_check_result *res;
gdouble mult_allow;
gdouble mult_deny;
- struct rspamd_symcache_item *item;
+ struct rspamd_symcache_dynamic_item *item;
struct dkim_check_result *next, *prev, *first;
};
static void dkim_symbol_callback (struct rspamd_task *task,
- struct rspamd_symcache_item *item,
+ struct rspamd_symcache_dynamic_item *item,
void *unused);
static void dkim_sign_callback (struct rspamd_task *task,
- struct rspamd_symcache_item *item,
+ struct rspamd_symcache_dynamic_item *item,
void *unused);
static gint lua_dkim_sign_handler (lua_State *L);
@@ -1125,7 +1125,7 @@ dkim_module_key_handler (rspamd_dkim_key_t *key,
static void
dkim_symbol_callback (struct rspamd_task *task,
- struct rspamd_symcache_item *item,
+ struct rspamd_symcache_dynamic_item *item,
void *unused)
{
rspamd_dkim_context_t *ctx;