From 6b4535ef8ad8d9839f0ccfc8bdc579f001094e99 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 8 Oct 2015 14:29:56 +0100 Subject: [PATCH] Use const ucl_object_t for dump. --- src/libutil/str_util.c | 4 ++-- src/libutil/str_util.h | 4 ++-- 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); -- 2.39.5