mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-05 13:18:17 +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"
|
#include "ostree-mount-util.h"
|
||||||
|
|
||||||
/* Initialized early in main */
|
|
||||||
static bool running_as_pid1;
|
|
||||||
|
|
||||||
static inline bool
|
static inline bool
|
||||||
sysroot_is_configured_ro (const char *sysroot)
|
sysroot_is_configured_ro (const char *sysroot)
|
||||||
{
|
{
|
||||||
@ -175,7 +172,7 @@ main(int argc, char *argv[])
|
|||||||
* - Quiet logging as there's no journal
|
* - Quiet logging as there's no journal
|
||||||
* etc.
|
* etc.
|
||||||
*/
|
*/
|
||||||
running_as_pid1 = (getpid () == 1);
|
bool running_as_pid1 = (getpid () == 1);
|
||||||
|
|
||||||
const char *root_arg = NULL;
|
const char *root_arg = NULL;
|
||||||
bool we_mounted_proc = false;
|
bool we_mounted_proc = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user