diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-14 17:21:31 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-14 17:21:31 +0000 |
commit | 3740caa96e5a3d930db98564f59b00a104e499fa (patch) | |
tree | 1f3547bd9d2d15d6d218edaf2a882df3bc2d9e30 /src/libserver/dynamic_cfg.c | |
parent | 2279095eb2ae749eb727eb2f9abd97a266a17ebd (diff) | |
download | rspamd-3740caa96e5a3d930db98564f59b00a104e499fa.tar.gz rspamd-3740caa96e5a3d930db98564f59b00a104e499fa.zip |
[Fix] Rework map reading state machine
Diffstat (limited to 'src/libserver/dynamic_cfg.c')
-rw-r--r-- | src/libserver/dynamic_cfg.c | 7 |
1 files changed, 4 insertions, 3 deletions
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; |