From b8a5bd7338af9c725c406fa0cac4b97af21b232e Mon Sep 17 00:00:00 2001 From: Max Wash Date: Mon, 15 Jun 2026 17:41:26 +0100 Subject: [PATCH] frontend: update fx api usage --- bshell/frontend.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bshell/frontend.c b/bshell/frontend.c index e686dbd..a9c57b2 100644 --- a/bshell/frontend.c +++ b/bshell/frontend.c @@ -190,9 +190,10 @@ static fx_path *create_path(const char *dir_path, const char *script_path) return paths[1]; } - fx_path *result = fx_path_join( - (const fx_path **)paths, - sizeof paths / sizeof paths[0]); + fx_path *result = fx_path_join_list( + 2, + &FX_CSTR(dir_path), + &FX_CSTR(script_path)); fx_path_unref(paths[0]); fx_path_unref(paths[1]); @@ -210,7 +211,7 @@ enum bshell_status frontend_eval_file( } struct bshell_file *file = NULL; - ctx->ctx_status = bshell_file_open(fx_path_ptr(path), &file); + ctx->ctx_status = bshell_file_open(fx_path_get_cstr(path), &file); fx_path_unref(path); if (!FX_OK(ctx->ctx_status)) {