diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-10-10 13:22:38 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-10-10 13:22:38 +0100 |
commit | 24939dddbf5b1b5bc35d303a2813ef825803d885 (patch) | |
tree | 3eda6d699f5ce3f146b611a121e6391b16a787a2 /src/plugins | |
parent | 0cc69c93e39c886355a830e615a46a01b590b376 (diff) | |
download | rspamd-24939dddbf5b1b5bc35d303a2813ef825803d885.tar.gz rspamd-24939dddbf5b1b5bc35d303a2813ef825803d885.zip |
Fix some warnings.
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/chartable.c | 2 | ||||
-rw-r--r-- | src/plugins/dkim_check.c | 6 | ||||
-rw-r--r-- | src/plugins/fuzzy_check.c | 9 | ||||
-rw-r--r-- | src/plugins/spf.c | 6 |
4 files changed, 12 insertions, 11 deletions
diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c index 35af23d52..a140c5893 100644 --- a/src/plugins/chartable.c +++ b/src/plugins/chartable.c @@ -56,7 +56,7 @@ module_t chartable_module = { struct chartable_ctx { gint (*filter) (struct worker_task * task); - gchar *symbol; + const gchar *symbol; double threshold; memory_pool_t *chartable_pool; diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c index 3872030cd..7ae11631c 100644 --- a/src/plugins/dkim_check.c +++ b/src/plugins/dkim_check.c @@ -58,9 +58,9 @@ struct dkim_ctx { gint (*filter) (struct worker_task * task); - gchar *symbol_reject; - gchar *symbol_tempfail; - gchar *symbol_allow; + const gchar *symbol_reject; + const gchar *symbol_tempfail; + const gchar *symbol_allow; memory_pool_t *dkim_pool; radix_tree_t *whitelist_ip; diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index f72a8230c..4a900d4db 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -68,7 +68,7 @@ struct storage_server { struct fuzzy_mapping { guint64 fuzzy_flag; - gchar *symbol; + const gchar *symbol; double weight; }; @@ -79,7 +79,7 @@ struct fuzzy_mime_type { struct fuzzy_ctx { gint (*filter) (struct worker_task * task); - gchar *symbol; + const gchar *symbol; struct storage_server *servers; gint servers_num; memory_pool_t *fuzzy_pool; @@ -275,7 +275,7 @@ fuzzy_check_content_type (GMimeContentType *type) } static void -parse_servers_string (gchar *str) +parse_servers_string (const gchar *str) { gchar **strvec; gint i, num; @@ -489,7 +489,8 @@ fuzzy_io_callback (gint fd, short what, void *arg) struct fuzzy_client_session *session = arg; struct fuzzy_cmd cmd; struct fuzzy_mapping *map; - gchar buf[62], *err_str, *symbol; + gchar buf[62], *err_str; + const gchar *symbol; gint value = 0, flag = 0, r; double nval; diff --git a/src/plugins/spf.c b/src/plugins/spf.c index 26f05f50a..254190961 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -52,9 +52,9 @@ struct spf_ctx { gint (*filter) (struct worker_task * task); - gchar *symbol_fail; - gchar *symbol_softfail; - gchar *symbol_allow; + const gchar *symbol_fail; + const gchar *symbol_softfail; + const gchar *symbol_allow; memory_pool_t *spf_pool; radix_tree_t *whitelist_ip; |