diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-05-09 21:25:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-05-09 21:25:23 +0100 |
commit | 22f603e83dd4fe3fc6d3e9e18b19bc87d57af235 (patch) | |
tree | cecceb5ebef41c6219071b4ea55c5d5c9b492294 /src/plugins/fuzzy_check.c | |
parent | d0d9673d38dbb2e8aa93ae60bbbc9193e9646902 (diff) | |
download | rspamd-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/fuzzy_check.c')
-rw-r--r-- | src/plugins/fuzzy_check.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 01e6aa189..864187cc7 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -132,7 +132,7 @@ struct fuzzy_client_session { GPtrArray *commands; GPtrArray *results; struct rspamd_task *task; - struct rspamd_symcache_item *item; + struct rspamd_symcache_dynamic_item *item; struct upstream *server; struct fuzzy_rule *rule; struct ev_loop *event_loop; @@ -181,7 +181,7 @@ struct fuzzy_cmd_io { static const char *default_headers = "Subject,Content-Type,Reply-To,X-Mailer"; static void fuzzy_symbol_callback (struct rspamd_task *task, - struct rspamd_symcache_item *item, + struct rspamd_symcache_dynamic_item *item, void *unused); /* Initialization */ @@ -3218,7 +3218,7 @@ register_fuzzy_client_call (struct rspamd_task *task, /* This callback is called when we check message in fuzzy hashes storage */ static void fuzzy_symbol_callback (struct rspamd_task *task, - struct rspamd_symcache_item *item, + struct rspamd_symcache_dynamic_item *item, void *unused) { struct fuzzy_rule *rule; |