summaryrefslogtreecommitdiffstats
path: root/src/libserver/dynamic_cfg.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-23 12:15:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-23 12:15:28 +0100
commit614767d4fe3a3b98e1c9d9e58cabcfcda2229fa8 (patch)
tree533fba1c8a4a36764e02641d2a6c40bb38114e38 /src/libserver/dynamic_cfg.c
parente67faf530b5c86de91f476a1d17918d2dd08f466 (diff)
downloadrspamd-614767d4fe3a3b98e1c9d9e58cabcfcda2229fa8.tar.gz
rspamd-614767d4fe3a3b98e1c9d9e58cabcfcda2229fa8.zip
Refactor function names.
Diffstat (limited to 'src/libserver/dynamic_cfg.c')
-rw-r--r--src/libserver/dynamic_cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/dynamic_cfg.c b/src/libserver/dynamic_cfg.c
index 27635f4be..97bb2c91e 100644
--- a/src/libserver/dynamic_cfg.c
+++ b/src/libserver/dynamic_cfg.c
@@ -108,7 +108,7 @@ apply_dynamic_conf (const ucl_object_t *top, struct rspamd_config *cfg)
while ((it_val = ucl_iterate_object (cur_nm, &nit, true))) {
if (ucl_object_find_key (it_val, "name") &&
ucl_object_find_key (it_val, "value")) {
- if (!check_action_str (ucl_object_tostring (
+ if (!rspamd_action_from_str (ucl_object_tostring (
ucl_object_find_key (it_val, "name")), &test_act)) {
msg_err ("unknown action: %s",
ucl_object_tostring (ucl_object_find_key (it_val,
@@ -485,7 +485,7 @@ add_dynamic_action (struct rspamd_config *cfg,
gdouble value)
{
ucl_object_t *metric, *acts;
- const gchar *action_name = str_action_metric (action);
+ const gchar *action_name = rspamd_action_to_str (action);
if (cfg->dynamic_conf == NULL) {
msg_info ("dynamic conf is disabled");