Refactor: drop do_ prefix from iterate_proc() and switch_root()

The do_ prefix is conventionally reserved for local helper functions.
Move switch_root() declaration to private.h alongside iterate_proc()
and remove the now-empty initramfs.h header.
This commit is contained in:
Aaron Andersen committed 2026-01-02 18:13:00 -05:00
1 parent 373738f3d1
commit 8e7d1b7bb5
6 files changed
+13 -50

No files matched your search

+2 -1
View File
@@ -59,7 +59,8 @@ void plugin_script_run(hook_point_t no);
int plugin_init (uev_ctx_t *ctx);
void plugin_exit (void);
void do_iterate_proc (int (*cb)(int, void *), void *data);
void iterate_proc (int (*cb)(int, void *), void *data);
int switch_root (const char *newroot, const char *newinit);
#endif /* FINIT_PRIVATE_H_ */