aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-10-26 14:20:53 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-10-26 14:20:53 +0100
commit0668bd7bd4391a1c1bc786733b514c760626984b (patch)
treed8c3a43201ae00dd0f1539d158e001195664304c /src/cfg_utils.c
parentbf9d32c2e37bdb0a081948c564ea48eebc148a0c (diff)
downloadrspamd-0668bd7bd4391a1c1bc786733b514c760626984b.tar.gz
rspamd-0668bd7bd4391a1c1bc786733b514c760626984b.zip
Improve xml->rcl conversion.
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r--src/cfg_utils.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c
index 9e3ae4761..87adc7d22 100644
--- a/src/cfg_utils.c
+++ b/src/cfg_utils.c
@@ -960,7 +960,7 @@ read_xml_config (struct config_file *cfg, const gchar *filename)
{
struct stat st;
gint fd;
- gchar *data;
+ gchar *data, *rcl;
gboolean res;
GMarkupParseContext *ctx;
GError *err = NULL;
@@ -994,7 +994,10 @@ read_xml_config (struct config_file *cfg, const gchar *filename)
munmap (data, st.st_size);
- return res;
+ rcl = ucl_object_emit (cfg->rcl_obj, UCL_EMIT_CONFIG);
+ printf ("%s", rcl);
+
+ return FALSE;
}
static void