summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-14 17:09:49 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-14 17:09:49 +0400
commit5f5254ff214fd77a6fdc8cce9269c29837fd162a (patch)
tree3a983e534528a76585baebdbf89cab2a245d0a97 /src/plugins
parenta8cdd33ac7ee59e195dca03a395c264877ee5168 (diff)
downloadrspamd-5f5254ff214fd77a6fdc8cce9269c29837fd162a.tar.gz
rspamd-5f5254ff214fd77a6fdc8cce9269c29837fd162a.zip
* Fix symbol planning, add cache_file directive to config file
* Fix some errors
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/chartable.c4
-rw-r--r--src/plugins/emails.c4
-rw-r--r--src/plugins/regexp.c4
-rw-r--r--src/plugins/surbl.c8
4 files changed, 10 insertions, 10 deletions
diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c
index 19c46c7b7..951285070 100644
--- a/src/plugins/chartable.c
+++ b/src/plugins/chartable.c
@@ -108,10 +108,10 @@ chartable_module_config (struct config_file *cfg)
/* Search in factors hash table */
w = g_hash_table_lookup (cfg->factors, chartable_module_ctx->symbol);
if (w == NULL) {
- register_symbol (metric->cache, chartable_module_ctx->symbol, 1, chartable_symbol_callback, NULL);
+ register_symbol (&metric->cache, chartable_module_ctx->symbol, 1, chartable_symbol_callback, NULL);
}
else {
- register_symbol (metric->cache, chartable_module_ctx->symbol, *w, chartable_symbol_callback, NULL);
+ register_symbol (&metric->cache, chartable_module_ctx->symbol, *w, chartable_symbol_callback, NULL);
}
return res;
diff --git a/src/plugins/emails.c b/src/plugins/emails.c
index 6b789916b..ef886ecf5 100644
--- a/src/plugins/emails.c
+++ b/src/plugins/emails.c
@@ -116,10 +116,10 @@ emails_module_config (struct config_file *cfg)
/* Search in factors hash table */
w = g_hash_table_lookup (cfg->factors, email_module_ctx->symbol);
if (w == NULL) {
- register_symbol (metric->cache, email_module_ctx->symbol, 1, emails_symbol_callback, NULL);
+ register_symbol (&metric->cache, email_module_ctx->symbol, 1, emails_symbol_callback, NULL);
}
else {
- register_symbol (metric->cache, email_module_ctx->symbol, *w, emails_symbol_callback, NULL);
+ register_symbol (&metric->cache, email_module_ctx->symbol, *w, emails_symbol_callback, NULL);
}
return res;
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c
index 7b123dd33..23ec3908c 100644
--- a/src/plugins/regexp.c
+++ b/src/plugins/regexp.c
@@ -194,10 +194,10 @@ regexp_module_config (struct config_file *cfg)
/* Search in factors hash table */
w = g_hash_table_lookup (cfg->factors, cur->param);
if (w == NULL) {
- register_symbol (metric->cache, cur->param, 1, process_regexp_item, cur_item);
+ register_symbol (&metric->cache, cur->param, 1, process_regexp_item, cur_item);
}
else {
- register_symbol (metric->cache, cur->param, *w, process_regexp_item, cur_item);
+ register_symbol (&metric->cache, cur->param, *w, process_regexp_item, cur_item);
}
cur_opt = g_list_next (cur_opt);
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index 691c57681..15bdc149b 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -195,10 +195,10 @@ surbl_module_config (struct config_file *cfg)
/* Search in factors hash table */
w = g_hash_table_lookup (cfg->factors, new_suffix->symbol);
if (w == NULL) {
- register_symbol (metric->cache, new_suffix->symbol, 1, surbl_test_url, NULL);
+ register_symbol (&metric->cache, new_suffix->symbol, 1, surbl_test_url, new_suffix);
}
else {
- register_symbol (metric->cache, new_suffix->symbol, *w, surbl_test_url, NULL);
+ register_symbol (&metric->cache, new_suffix->symbol, *w, surbl_test_url, new_suffix);
}
}
}
@@ -227,10 +227,10 @@ surbl_module_config (struct config_file *cfg)
surbl_module_ctx->suffixes = g_list_prepend (surbl_module_ctx->suffixes, new_suffix);
w = g_hash_table_lookup (cfg->factors, new_suffix->symbol);
if (w == NULL) {
- register_symbol (metric->cache, new_suffix->symbol, 1, surbl_test_url, new_suffix);
+ register_symbol (&metric->cache, new_suffix->symbol, 1, surbl_test_url, new_suffix);
}
else {
- register_symbol (metric->cache, new_suffix->symbol, *w, surbl_test_url, new_suffix);
+ register_symbol (&metric->cache, new_suffix->symbol, *w, surbl_test_url, new_suffix);
}
}