aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make/ctx.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-14 00:11:29 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-14 00:11:29 +0100
commit99ef1c93f0359741fd18217cd81cf2c3e0beaf7b (patch)
tree993788059d2b7b6b8989df1d5d28f259d7bab56c /src/blogc-make/ctx.c
parent3d93f3a5e165ec12b97a269ef8fe599981e61e92 (diff)
downloadblogc-99ef1c93f0359741fd18217cd81cf2c3e0beaf7b.tar.gz
blogc-99ef1c93f0359741fd18217cd81cf2c3e0beaf7b.tar.bz2
blogc-99ef1c93f0359741fd18217cd81cf2c3e0beaf7b.zip
blogc-make: renamed copy_files settings to copy
Diffstat (limited to 'src/blogc-make/ctx.c')
-rw-r--r--src/blogc-make/ctx.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/blogc-make/ctx.c b/src/blogc-make/ctx.c
index 2dd4f97..0e885ec 100644
--- a/src/blogc-make/ctx.c
+++ b/src/blogc-make/ctx.c
@@ -197,11 +197,11 @@ bm_ctx_new(bm_ctx_t *base, const char *settings_file, bc_error_t **err)
}
}
- rv->copy_files_fctx = NULL;
- if (settings->copy_files != NULL) {
- for (size_t i = 0; settings->copy_files[i] != NULL; i++) {
- rv->copy_files_fctx = bc_slist_append(rv->copy_files_fctx,
- bm_filectx_new(rv, settings->copy_files[i]));
+ rv->copy_fctx = NULL;
+ if (settings->copy != NULL) {
+ for (size_t i = 0; settings->copy[i] != NULL; i++) {
+ rv->copy_fctx = bc_slist_append(rv->copy_fctx,
+ bm_filectx_new(rv, settings->copy[i]));
}
}
@@ -241,7 +241,7 @@ bm_ctx_reload(bm_ctx_t *ctx)
for (bc_slist_t *tmp = ctx->pages_fctx; tmp != NULL; tmp = tmp->next)
bm_filectx_reload((bm_filectx_t*) tmp->data);
- for (bc_slist_t *tmp = ctx->copy_files_fctx; tmp != NULL; tmp = tmp->next)
+ for (bc_slist_t *tmp = ctx->copy_fctx; tmp != NULL; tmp = tmp->next)
bm_filectx_reload((bm_filectx_t*) tmp->data);
}
@@ -273,8 +273,8 @@ bm_ctx_free_internal(bm_ctx_t *ctx)
ctx->posts_fctx = NULL;
bc_slist_free_full(ctx->pages_fctx, (bc_free_func_t) bm_filectx_free);
ctx->pages_fctx = NULL;
- bc_slist_free_full(ctx->copy_files_fctx, (bc_free_func_t) bm_filectx_free);
- ctx->copy_files_fctx = NULL;
+ bc_slist_free_full(ctx->copy_fctx, (bc_free_func_t) bm_filectx_free);
+ ctx->copy_fctx = NULL;
}