mirror of
https://github.com/troglobit/finit.git
synced 2026-10-16 10:39:35 +00:00
conf: relocate global state from legacy parser
Relocate process-wide global variables from legacy parser that ended up there because it used to be conf.c, but which is now now frozen at the 4.x feature set. Each variable is moved to their respective "owner". Give cgroup_current[] and cgroup_settings_current[] named bounds. Their extern declarations were unsized, so sizeof() on them stopped compiling once the definitions moved to another translation unit. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
5 files changed
+58
-56
No files matched your search
+19
@@ -65,6 +65,25 @@ uev_ctx_t *ctx; /* Main loop context */
|
||||
svc_t *wdog; /* No watchdog by default */
|
||||
char *arg0; /* Saved for setprocnm() */
|
||||
|
||||
/*
|
||||
* --enable-fastboot => fsck_mode: NULL => no fsck by default
|
||||
* --enable-fsckfix => fsck_mode: "-f" + fsck_repair: "y"
|
||||
*/
|
||||
#ifdef FSCK_FIX
|
||||
# ifdef FAST_BOOT
|
||||
char *fsck_mode = NULL;
|
||||
# else
|
||||
char *fsck_mode = "-f";
|
||||
# endif
|
||||
char *fsck_repair = "-y";
|
||||
#else
|
||||
# ifdef FAST_BOOT
|
||||
char *fsck_mode = NULL;
|
||||
# else
|
||||
char *fsck_mode = "";
|
||||
# endif
|
||||
char *fsck_repair = "-p";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Show user configured banner before service bootstrap progress
|
||||
|
||||
Reference in new issue
Block a user