summaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/protocol.c4
-rw-r--r--src/libserver/task.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index 31b0308cb..7307c95c8 100644
--- a/src/libserver/protocol.c
+++ b/src/libserver/protocol.c
@@ -1251,7 +1251,7 @@ rspamd_scan_result_ucl (struct rspamd_task *task,
obj = ucl_object_typed_new (UCL_OBJECT);
}
- kh_foreach_value_ptr (mres->symbols, sym, {
+ kh_foreach_value (mres->symbols, sym, {
if (!(sym->flags & RSPAMD_SYMBOL_RESULT_IGNORED)) {
sobj = rspamd_metric_symbol_ucl (task, sym);
ucl_object_insert_key (obj, sobj, sym->name, 0, false);
@@ -1968,7 +1968,7 @@ rspamd_protocol_write_log_pipe (struct rspamd_task *task)
i = 0;
- kh_foreach_value_ptr (mres->symbols, sym, {
+ kh_foreach_value (mres->symbols, sym, {
id = rspamd_symcache_find_symbol (task->cfg->cache,
sym->name);
diff --git a/src/libserver/task.c b/src/libserver/task.c
index 43ce59ee1..407f2c4d4 100644
--- a/src/libserver/task.c
+++ b/src/libserver/task.c
@@ -1120,7 +1120,7 @@ rspamd_task_log_metric_res (struct rspamd_task *task,
symbuf = rspamd_fstring_sized_new (128);
sorted_symbols = g_ptr_array_sized_new (kh_size (mres->symbols));
- kh_foreach_value_ptr (mres->symbols, sym, {
+ kh_foreach_value (mres->symbols, sym, {
if (!(sym->flags & RSPAMD_SYMBOL_RESULT_IGNORED)) {
g_ptr_array_add (sorted_symbols, (gpointer)sym);
}