]> source.dussan.org Git - rspamd.git/commitdiff
Fix some warnings.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 10 Oct 2013 12:22:38 +0000 (13:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 10 Oct 2013 12:22:38 +0000 (13:22 +0100)
src/plugins/chartable.c
src/plugins/dkim_check.c
src/plugins/fuzzy_check.c
src/plugins/spf.c

index 35af23d5259d82d3e50d107b86cec2568fb5d69b..a140c58937ec541530e704bace978e475af69e54 100644 (file)
@@ -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;
index 3872030cd86d5498883c83b2f9fa271922527f9e..7ae11631ca3fec0e6172bbdbf220e76ea25ec52d 100644 (file)
@@ -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;
index f72a8230c258d6fa4c2528c00b3a405ffeaddbca..4a900d4db54a077181e80e36c12c75771eb4d228 100644 (file)
@@ -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;
 
index 26f05f50a4c44b741b0ecad8ced2bf70463507d4..25419096163a7836f65dbe2f3cf5132c9e1fa3c8 100644 (file)
@@ -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;