toolchain: xpcg: update fx path api usage
This commit is contained in:
@@ -1150,7 +1150,7 @@ static int emit_interface(const struct interface_definition *iface)
|
|||||||
snprintf(path, sizeof path, "%s.h", iface->if_name);
|
snprintf(path, sizeof path, "%s.h", iface->if_name);
|
||||||
fx_result result = fx_file_open(
|
fx_result result = fx_file_open(
|
||||||
NULL,
|
NULL,
|
||||||
FX_RV_PATH(path),
|
FX_CSTR(path),
|
||||||
FX_FILE_WRITE_ONLY | FX_FILE_CREATE | FX_FILE_TRUNCATE,
|
FX_FILE_WRITE_ONLY | FX_FILE_CREATE | FX_FILE_TRUNCATE,
|
||||||
&file);
|
&file);
|
||||||
if (fx_result_is_error(result)) {
|
if (fx_result_is_error(result)) {
|
||||||
|
|||||||
@@ -86,11 +86,8 @@ static int xpcg(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fx_file *file = NULL;
|
fx_file *file = NULL;
|
||||||
fx_result result = fx_file_open(
|
fx_result result
|
||||||
NULL,
|
= fx_file_open(NULL, FX_CSTR(path), FX_FILE_READ_ONLY, &file);
|
||||||
FX_RV_PATH(path),
|
|
||||||
FX_FILE_READ_ONLY,
|
|
||||||
&file);
|
|
||||||
if (fx_result_is_error(result)) {
|
if (fx_result_is_error(result)) {
|
||||||
fx_throw(result);
|
fx_throw(result);
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user