fx.io: update all path parameters to be fx_values
This commit is contained in:
@@ -6,10 +6,9 @@
|
||||
int main(int argc, const char **argv)
|
||||
{
|
||||
fx_file *dest;
|
||||
fx_path *path = fx_path_create_from_cstr("data.txt");
|
||||
fx_result result = fx_file_open(
|
||||
NULL,
|
||||
path,
|
||||
FX_CSTR("data.txt"),
|
||||
FX_FILE_WRITE_ONLY | FX_FILE_CREATE,
|
||||
&dest);
|
||||
if (fx_result_is_error(result)) {
|
||||
@@ -23,7 +22,6 @@ int main(int argc, const char **argv)
|
||||
|
||||
printf("done. read %zu bytes total.\n", nr_read);
|
||||
|
||||
fx_path_unref(path);
|
||||
fx_file_unref(dest);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user