]> Kevux Git Server - kevux-tools/commitdiff
Cleanup: Use F_file_at_current_working_d.
authorKevin Day <Kevin@kevux.org>
Tue, 1 Jul 2025 03:01:23 +0000 (22:01 -0500)
committerKevin Day <Kevin@kevux.org>
Tue, 1 Jul 2025 03:01:28 +0000 (22:01 -0500)
The `AT_CWD` is already defined as `F_file_at_current_working_d`.

sources/c/program/kevux/tools/remove/main/preprocess.c

index 05709801948629287ce26c874551ca99ff5d3f85..c51dbe23e2e56a58a4ed03ea3e01bdd22d42fc65 100644 (file)
@@ -419,8 +419,7 @@ extern "C" {
 
     if (!path.used) return F_data_not;
 
-    // -100 is the AT_CWD, @todo update FLL project and then this to provide a define for this.
-    const f_file_t cwd = macro_f_file_t_initialize_id(-100);
+    const f_file_t cwd = macro_f_file_t_initialize_id(F_file_at_current_working_d);
 
     f_status_t status = f_file_access_at(cwd, path, F_file_access_mode_read_d, access_flags);