From 99ef1c93f0359741fd18217cd81cf2c3e0beaf7b Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 14 Feb 2017 00:11:29 +0100 Subject: blogc-make: renamed copy_files settings to copy --- src/blogc-make/ctx.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/blogc-make/ctx.c') 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; } -- cgit v1.2.3-18-g5258