From 59034be9e6d12dde5658f080cf005271d7cc13b7 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 19 Jul 2026 13:33:05 +0100 Subject: [PATCH] toolchain: xpcg: update fx path api usage --- toolchain/xpcg/backend/c-mpc/backend.c | 2 +- toolchain/xpcg/main.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/toolchain/xpcg/backend/c-mpc/backend.c b/toolchain/xpcg/backend/c-mpc/backend.c index 5700de2..33541d6 100644 --- a/toolchain/xpcg/backend/c-mpc/backend.c +++ b/toolchain/xpcg/backend/c-mpc/backend.c @@ -1150,7 +1150,7 @@ static int emit_interface(const struct interface_definition *iface) snprintf(path, sizeof path, "%s.h", iface->if_name); fx_result result = fx_file_open( NULL, - FX_RV_PATH(path), + FX_CSTR(path), FX_FILE_WRITE_ONLY | FX_FILE_CREATE | FX_FILE_TRUNCATE, &file); if (fx_result_is_error(result)) { diff --git a/toolchain/xpcg/main.c b/toolchain/xpcg/main.c index d85182f..c06cde6 100644 --- a/toolchain/xpcg/main.c +++ b/toolchain/xpcg/main.c @@ -86,11 +86,8 @@ static int xpcg( } fx_file *file = NULL; - fx_result result = fx_file_open( - NULL, - FX_RV_PATH(path), - FX_FILE_READ_ONLY, - &file); + fx_result result + = fx_file_open(NULL, FX_CSTR(path), FX_FILE_READ_ONLY, &file); if (fx_result_is_error(result)) { fx_throw(result); return -1;