aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-22 23:20:12 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-22 23:20:12 +0000
commit8c53673d2859ba9ba328d2aa3013f28cf56c36af (patch)
tree4e000ad0eaded4fb78948daa55edc6f767aaeab6 /src/libserver/task.c
parent224ae26ff972f2d6d53994e3d89ca2a9105a6911 (diff)
downloadrspamd-8c53673d2859ba9ba328d2aa3013f28cf56c36af.tar.gz
rspamd-8c53673d2859ba9ba328d2aa3013f28cf56c36af.zip
Constify cache add key argument.
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r--src/libserver/task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c
index 8f5334927..9ac66b65c 100644
--- a/src/libserver/task.c
+++ b/src/libserver/task.c
@@ -453,7 +453,7 @@ rspamd_task_add_sender (struct rspamd_task *task, const gchar *sender)
guint
-rspamd_task_re_cache_add (struct rspamd_task *task, gchar *re,
+rspamd_task_re_cache_add (struct rspamd_task *task, const gchar *re,
guint value)
{
guint ret = RSPAMD_TASK_CACHE_NO_VALUE;
@@ -465,7 +465,7 @@ rspamd_task_re_cache_add (struct rspamd_task *task, gchar *re,
ret = GPOINTER_TO_INT (p);
}
- g_hash_table_insert (task->re_cache, re, GINT_TO_POINTER (value));
+ g_hash_table_insert (task->re_cache, (gpointer)re, GINT_TO_POINTER (value));
return ret;
}