GQueue *stack;
GList *symbols = NULL, *s;
gsize cur, op1, op2;
- struct symbol *res;
stack = g_queue_new ();
s = g_list_next (s);
}
/* Add new symbol */
- res = memory_pool_alloc (cd->task->task_pool, sizeof (struct symbol));
- res->score = 1.;
- res->options = NULL;
- g_hash_table_insert (cd->metric_res->symbols, key, res);
+ insert_result (cd->task, key, 1.0, NULL);
}
}
case RSPAMD_LOG_FILE:
if (rspamd_log->enabled) {
if (rspamd_log->repeats > REPEATS_MIN) {
- snprintf (tmpbuf, sizeof (tmpbuf), "Last message repeated %ud times", rspamd_log->repeats);
+ rspamd_snprintf (tmpbuf, sizeof (tmpbuf), "Last message repeated %ud times", rspamd_log->repeats);
rspamd_log->repeats = 0;
if (rspamd_log->saved_message) {
file_log_function (NULL, rspamd_log->saved_function, rspamd_log->cfg->log_level, rspamd_log->saved_message, TRUE, NULL);