From 3740caa96e5a3d930db98564f59b00a104e499fa Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 14 Mar 2016 17:21:31 +0000 Subject: [Fix] Rework map reading state machine --- src/libserver/dynamic_cfg.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/libserver/dynamic_cfg.c') diff --git a/src/libserver/dynamic_cfg.c b/src/libserver/dynamic_cfg.c index 27fec9da9..48ce0725a 100644 --- a/src/libserver/dynamic_cfg.c +++ b/src/libserver/dynamic_cfg.c @@ -133,11 +133,12 @@ apply_dynamic_conf (const ucl_object_t *top, struct rspamd_config *cfg) } /* Callbacks for reading json dynamic rules */ -gchar * +static gchar * json_config_read_cb (rspamd_mempool_t * pool, gchar * chunk, gint len, - struct map_cb_data *data) + struct map_cb_data *data, + gboolean final) { struct config_json_buf *jb, *pd; @@ -165,7 +166,7 @@ json_config_read_cb (rspamd_mempool_t * pool, return NULL; } -void +static void json_config_fin_cb (rspamd_mempool_t * pool, struct map_cb_data *data) { struct config_json_buf *jb; -- cgit v1.2.3