aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-10 17:17:09 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-10 17:17:09 +0100
commit6e31344466e2558a99cd46bb29abaa37e1faffc6 (patch)
treeae51cd2a56c252d6f0df6755b76719fe121e81e3 /src/libserver
parentc4d3eb4af41a17cf28cb4fbb171d9b70d98259b5 (diff)
downloadrspamd-6e31344466e2558a99cd46bb29abaa37e1faffc6.tar.gz
rspamd-6e31344466e2558a99cd46bb29abaa37e1faffc6.zip
[Minor] Fix compile warnings
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/html.c4
-rw-r--r--src/libserver/spf.c2
-rw-r--r--src/libserver/task.c3
3 files changed, 2 insertions, 7 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c
index 73bf05440..dbbefd10c 100644
--- a/src/libserver/html.c
+++ b/src/libserver/html.c
@@ -573,7 +573,7 @@ rspamd_html_url_is_phished (rspamd_mempool_t *pool,
struct rspamd_url **ptext_url)
{
struct rspamd_url *text_url;
- rspamd_ftok_t phished_tld, disp_tok, href_tok;
+ rspamd_ftok_t disp_tok, href_tok;
gint rc;
goffset url_pos;
gchar *url_str = NULL, *idn_hbuf;
@@ -719,8 +719,6 @@ rspamd_html_url_is_phished (rspamd_mempool_t *pool,
if (!rspamd_url_is_subdomain (&disp_tok, &href_tok)) {
href_url->flags |= RSPAMD_URL_FLAG_PHISHED;
href_url->phished_url = text_url;
- phished_tld.begin = href_tok.begin;
- phished_tld.len = href_tok.len;
text_url->flags |= RSPAMD_URL_FLAG_HTML_DISPLAYED;
}
}
diff --git a/src/libserver/spf.c b/src/libserver/spf.c
index 02041b015..631594808 100644
--- a/src/libserver/spf.c
+++ b/src/libserver/spf.c
@@ -1937,7 +1937,6 @@ parse_spf_record (struct spf_record *rec, struct spf_resolved_element *resolved,
struct spf_addr *addr = NULL;
gboolean res = FALSE;
const gchar *begin;
- struct rspamd_task *task;
gchar t;
g_assert (elt != NULL);
@@ -1947,7 +1946,6 @@ parse_spf_record (struct spf_record *rec, struct spf_resolved_element *resolved,
return TRUE;
}
- task = rec->task;
begin = expand_spf_macro (rec, resolved, elt);
addr = rspamd_spf_new_addr (rec, resolved, begin);
g_assert (addr != NULL);
diff --git a/src/libserver/task.c b/src/libserver/task.c
index e2fcdb2d6..a45342907 100644
--- a/src/libserver/task.c
+++ b/src/libserver/task.c
@@ -1059,7 +1059,6 @@ rspamd_task_log_metric_res (struct rspamd_task *task,
GPtrArray *sorted_symbols;
struct rspamd_action *act;
struct rspamd_symbols_group *gr;
- gdouble gr_score;
guint i, j;
khiter_t k;
@@ -1157,7 +1156,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->sym_groups));
- kh_foreach (mres->sym_groups, gr, gr_score,{
+ kh_foreach_key (mres->sym_groups, gr,{
if (!(gr->flags & RSPAMD_SYMBOL_GROUP_PUBLIC)) {
if (lf->type == RSPAMD_LOG_PUBLIC_GROUPS) {
continue;