diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2025-11-04 12:12:56 -0500 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2025-11-04 12:12:56 -0500 |
| commit | 6de3db226d65604f37a4fbed5232546f42c191b9 (patch) | |
| tree | 6f3d1cb2e503db393631bde96194bc10f8cee358 /src/cli/stasis_indexer/website.c | |
| parent | 2bf6db7e8b5c018c4f02910643728f4c445295b6 (diff) | |
| download | stasis-6de3db226d65604f37a4fbed5232546f42c191b9.tar.gz | |
Convert context manipulation from stack+heap to just heap
Diffstat (limited to 'src/cli/stasis_indexer/website.c')
| -rw-r--r-- | src/cli/stasis_indexer/website.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli/stasis_indexer/website.c b/src/cli/stasis_indexer/website.c index 55f0c45..966391e 100644 --- a/src/cli/stasis_indexer/website.c +++ b/src/cli/stasis_indexer/website.c @@ -1,7 +1,7 @@ #include "core.h" #include "website.h" -int indexer_make_website(const struct Delivery *ctx) { +int indexer_make_website(struct Delivery **ctx) { char *css_filename = calloc(PATH_MAX, sizeof(*css_filename)); if (!css_filename) { SYSERROR("unable to allocate string for CSS file path: %s", strerror(errno)); @@ -12,8 +12,8 @@ int indexer_make_website(const struct Delivery *ctx) { const int have_css = access(css_filename, F_OK | R_OK) == 0; struct StrList *dirs = strlist_init(); - strlist_append(&dirs, ctx->storage.delivery_dir); - strlist_append(&dirs, ctx->storage.results_dir); + strlist_append(&dirs, (*ctx)->storage.delivery_dir); + strlist_append(&dirs, (*ctx)->storage.results_dir); struct StrList *inputs = NULL; for (size_t i = 0; i < strlist_count(dirs); i++) { |
