aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/chartable.c2
-rw-r--r--src/plugins/dkim_check.c2
-rw-r--r--src/plugins/fuzzy_check.c10
-rw-r--r--src/plugins/regexp.c2
-rw-r--r--src/plugins/spf.c2
-rw-r--r--src/plugins/surbl.c2
6 files changed, 10 insertions, 10 deletions
diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c
index ec848f6df..47b5efd7e 100644
--- a/src/plugins/chartable.c
+++ b/src/plugins/chartable.c
@@ -84,7 +84,7 @@ chartable_module_init (struct config_file *cfg, struct module_ctx **ctx)
gint
chartable_module_config (struct config_file *cfg)
{
- ucl_object_t *value;
+ const ucl_object_t *value;
gint res = TRUE;
if ((value = get_module_opt (cfg, "chartable", "symbol")) != NULL) {
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c
index b7c5515e5..225f781c0 100644
--- a/src/plugins/dkim_check.c
+++ b/src/plugins/dkim_check.c
@@ -103,7 +103,7 @@ dkim_module_init (struct config_file *cfg, struct module_ctx **ctx)
gint
dkim_module_config (struct config_file *cfg)
{
- ucl_object_t *value;
+ const ucl_object_t *value;
gint res = TRUE;
guint cache_size, cache_expire;
gboolean got_trusted = FALSE;
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index 2f48548a5..d1e55a678 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -149,9 +149,9 @@ module_t fuzzy_check_module = {
};
static void
-parse_flags (struct fuzzy_rule *rule, struct config_file *cfg, ucl_object_t *val)
+parse_flags (struct fuzzy_rule *rule, struct config_file *cfg, const ucl_object_t *val)
{
- ucl_object_t *elt;
+ const ucl_object_t *elt;
struct fuzzy_mapping *map;
const gchar *sym = NULL;
@@ -325,9 +325,9 @@ fuzzy_rule_new (const char *default_symbol, memory_pool_t *pool)
}
static gint
-fuzzy_parse_rule (struct config_file *cfg, ucl_object_t *obj)
+fuzzy_parse_rule (struct config_file *cfg, const ucl_object_t *obj)
{
- ucl_object_t *value, *cur;
+ const ucl_object_t *value, *cur;
struct fuzzy_rule *rule;
ucl_object_iter_t it = NULL;
@@ -404,7 +404,7 @@ fuzzy_check_module_init (struct config_file *cfg, struct module_ctx **ctx)
gint
fuzzy_check_module_config (struct config_file *cfg)
{
- ucl_object_t *value, *cur;
+ const ucl_object_t *value, *cur;
gint res = TRUE;
if ((value = get_module_opt (cfg, "fuzzy_check", "symbol")) != NULL) {
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c
index ece8a53fc..6569dd150 100644
--- a/src/plugins/regexp.c
+++ b/src/plugins/regexp.c
@@ -570,7 +570,7 @@ gint
regexp_module_config (struct config_file *cfg)
{
struct regexp_module_item *cur_item;
- ucl_object_t *sec, *value;
+ const ucl_object_t *sec, *value;
ucl_object_iter_t it = NULL;
gint res = TRUE;
struct regexp_json_buf *jb, **pjb;
diff --git a/src/plugins/spf.c b/src/plugins/spf.c
index 99e7f664e..395313067 100644
--- a/src/plugins/spf.c
+++ b/src/plugins/spf.c
@@ -95,7 +95,7 @@ spf_module_init (struct config_file *cfg, struct module_ctx **ctx)
gint
spf_module_config (struct config_file *cfg)
{
- ucl_object_t *value;
+ const ucl_object_t *value;
gint res = TRUE;
guint cache_size, cache_expire;
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index 8478907f1..585e174fb 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -269,7 +269,7 @@ surbl_module_config (struct config_file *cfg)
struct suffix_item *new_suffix, *cur_suffix = NULL;
struct surbl_bit_item *new_bit;
- ucl_object_t *value, *cur, *cur_rule, *cur_bit;
+ const ucl_object_t *value, *cur, *cur_rule, *cur_bit;
ucl_object_iter_t it = NULL;
const gchar *redir_val;
guint32 bit;