diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-16 09:59:52 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-16 09:59:52 +0000 |
commit | 6bc5286496c43a0ee9f1a616507c7aa03e28450c (patch) | |
tree | 9a6ed4374aaf129777560ba58f608368fb8754df /src/libstat/stat_config.c | |
parent | 153e64677902c1acc7a1e8ee21d5b634d8a65885 (diff) | |
download | rspamd-6bc5286496c43a0ee9f1a616507c7aa03e28450c.tar.gz rspamd-6bc5286496c43a0ee9f1a616507c7aa03e28450c.zip |
Refactor UCL API
Diffstat (limited to 'src/libstat/stat_config.c')
-rw-r--r-- | src/libstat/stat_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstat/stat_config.c b/src/libstat/stat_config.c index 96af1eb53..6e383baf1 100644 --- a/src/libstat/stat_config.c +++ b/src/libstat/stat_config.c @@ -152,11 +152,11 @@ rspamd_stat_init (struct rspamd_config *cfg, struct event_base *ev_base) cache_name = NULL; if (clf->opts) { - cache_obj = ucl_object_find_key (clf->opts, "cache"); + cache_obj = ucl_object_lookup (clf->opts, "cache"); cache_name_obj = NULL; if (cache_obj) { - cache_name_obj = ucl_object_find_any_key (cache_obj, + cache_name_obj = ucl_object_lookup_any (cache_obj, "name", "type", NULL); } |