mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-03 05:18:24 +03:00
prepare-root: get rid of a global variable
This moves a global mutable variable to a smaller local scope, as it is not really used outside of that.
This commit is contained in:
parent
1e6077af03
commit
7c17daad17
@ -81,9 +81,6 @@
|
||||
|
||||
#include "ostree-mount-util.h"
|
||||
|
||||
/* Initialized early in main */
|
||||
static bool running_as_pid1;
|
||||
|
||||
static inline bool
|
||||
sysroot_is_configured_ro (const char *sysroot)
|
||||
{
|
||||
@ -175,7 +172,7 @@ main(int argc, char *argv[])
|
||||
* - Quiet logging as there's no journal
|
||||
* etc.
|
||||
*/
|
||||
running_as_pid1 = (getpid () == 1);
|
||||
bool running_as_pid1 = (getpid () == 1);
|
||||
|
||||
const char *root_arg = NULL;
|
||||
bool we_mounted_proc = false;
|
||||
|
Loading…
Reference in New Issue
Block a user