aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2019-07-24 18:17:24 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2019-07-24 18:17:24 +0200
commitc12bdb94ecdc44f200a8030dfde4a5ec46053ea6 (patch)
tree4103e05d4d188ec73d99a5f47f89833e346a3637 /src
parent282e2d4ec17f251ffbfa29e45bede693c2fedec9 (diff)
downloadblogc-c12bdb94ecdc44f200a8030dfde4a5ec46053ea6.tar.gz
blogc-c12bdb94ecdc44f200a8030dfde4a5ec46053ea6.tar.bz2
blogc-c12bdb94ecdc44f200a8030dfde4a5ec46053ea6.zip
blogc: loader: minor improvement
Diffstat (limited to 'src')
-rw-r--r--src/blogc/loader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blogc/loader.c b/src/blogc/loader.c
index 029acbf..d620988 100644
--- a/src/blogc/loader.c
+++ b/src/blogc/loader.c
@@ -186,7 +186,8 @@ blogc_source_parse_from_files(bc_trie_t *conf, bc_slist_t *l, bc_error_t **err)
bool reverse = bc_str_to_bool(bc_trie_lookup(conf, "FILTER_REVERSE"));
if (sort) {
- sources = bc_slist_sort(sources, reverse ? sort_source_reverse : sort_source);
+ sources = bc_slist_sort(sources,
+ (bc_sort_func_t) (reverse ? sort_source_reverse : sort_source));
}
else if (reverse) {
bc_slist_t *tmp_sources = NULL;