aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-08 14:29:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-08 14:29:56 +0100
commit6b4535ef8ad8d9839f0ccfc8bdc579f001094e99 (patch)
tree9c9a83dfa324791ece3b11de5472d06d74906376 /src/libutil
parentc456b18a963242b80fbd30b3ad261d2c28502dab (diff)
downloadrspamd-6b4535ef8ad8d9839f0ccfc8bdc579f001094e99.tar.gz
rspamd-6b4535ef8ad8d9839f0ccfc8bdc579f001094e99.zip
Use const ucl_object_t for dump.
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/str_util.c4
-rw-r--r--src/libutil/str_util.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c
index 9031305b0..8254aa2ad 100644
--- a/src/libutil/str_util.c
+++ b/src/libutil/str_util.c
@@ -1289,7 +1289,7 @@ rspamd_gstring_append_double (double val, void *ud)
}
void
-rspamd_ucl_emit_gstring (ucl_object_t *obj,
+rspamd_ucl_emit_gstring (const ucl_object_t *obj,
enum ucl_emitter emit_type,
GString *target)
{
@@ -1357,7 +1357,7 @@ rspamd_fstring_emit_append_double (double val, void *ud)
}
void
-rspamd_ucl_emit_fstring (ucl_object_t *obj,
+rspamd_ucl_emit_fstring (const ucl_object_t *obj,
enum ucl_emitter emit_type,
rspamd_fstring_t **buf)
{
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h
index 75938668b..8ea5e3fce 100644
--- a/src/libutil/str_util.h
+++ b/src/libutil/str_util.h
@@ -204,7 +204,7 @@ goffset rspamd_string_find_eoh (GString *input);
* @param emit_type emitter type
* @param target target string
*/
-void rspamd_ucl_emit_gstring (ucl_object_t *obj,
+void rspamd_ucl_emit_gstring (const ucl_object_t *obj,
enum ucl_emitter emit_type,
GString *target);
@@ -214,7 +214,7 @@ void rspamd_ucl_emit_gstring (ucl_object_t *obj,
* @param emit_type emitter type
* @param target target string
*/
-void rspamd_ucl_emit_fstring (ucl_object_t *obj,
+void rspamd_ucl_emit_fstring (const ucl_object_t *obj,
enum ucl_emitter emit_type,
rspamd_fstring_t **target);