diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-15 19:02:35 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-12-15 20:52:28 +0100 |
commit | 625e8690ab1545f9e88bdf4c3ec8c67aa6c8c2ff (patch) | |
tree | 14a5cda1a0ef3f6b61d0d1c029c6c54256f6fe78 /src | |
parent | aa40ff070391e1a5eebafcec834a59973fbaac00 (diff) | |
download | systemd-625e8690ab1545f9e88bdf4c3ec8c67aa6c8c2ff.tar.gz systemd-625e8690ab1545f9e88bdf4c3ec8c67aa6c8c2ff.tar.bz2 systemd-625e8690ab1545f9e88bdf4c3ec8c67aa6c8c2ff.zip |
main: reorder variable declarations a bit
Let's remove a bit redundancy, and list variables of the same
type/category in one declaration line.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/main.c | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/src/core/main.c b/src/core/main.c index 20d5c53bb5..34f651d6ac 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -2290,26 +2290,19 @@ static bool early_skip_setup_check(int argc, char *argv[]) { } int main(int argc, char *argv[]) { - Manager *m = NULL; - int r, retval = EXIT_FAILURE; + + dual_timestamp initrd_timestamp = DUAL_TIMESTAMP_NULL, userspace_timestamp = DUAL_TIMESTAMP_NULL, kernel_timestamp = DUAL_TIMESTAMP_NULL, + security_start_timestamp = DUAL_TIMESTAMP_NULL, security_finish_timestamp = DUAL_TIMESTAMP_NULL; + struct rlimit saved_rlimit_nofile = RLIMIT_MAKE_CONST(0), saved_rlimit_memlock = RLIMIT_MAKE_CONST((rlim_t) -1); + bool skip_setup, loaded_policy = false, queue_default_job = false, first_boot = false, reexecute = false; + char *switch_root_dir = NULL, *switch_root_init = NULL; usec_t before_startup, after_startup; + static char systemd[] = "systemd"; char timespan[FORMAT_TIMESPAN_MAX]; + const char *shutdown_verb = NULL, *error_message = NULL; + int r, retval = EXIT_FAILURE; + Manager *m = NULL; FDSet *fds = NULL; - bool reexecute = false; - const char *shutdown_verb = NULL; - dual_timestamp initrd_timestamp = DUAL_TIMESTAMP_NULL; - dual_timestamp userspace_timestamp = DUAL_TIMESTAMP_NULL; - dual_timestamp kernel_timestamp = DUAL_TIMESTAMP_NULL; - dual_timestamp security_start_timestamp = DUAL_TIMESTAMP_NULL; - dual_timestamp security_finish_timestamp = DUAL_TIMESTAMP_NULL; - static char systemd[] = "systemd"; - bool skip_setup; - bool loaded_policy = false; - bool queue_default_job = false; - bool first_boot = false; - char *switch_root_dir = NULL, *switch_root_init = NULL; - struct rlimit saved_rlimit_nofile = RLIMIT_MAKE_CONST(0), saved_rlimit_memlock = RLIMIT_MAKE_CONST((rlim_t) -1); - const char *error_message = NULL; redirect_telinit(argc, argv); |