]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: merge a few if blocks
authorLennart Poettering <lennart@poettering.net>
Wed, 19 Aug 2020 15:45:33 +0000 (17:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 19 Aug 2020 16:06:12 +0000 (18:06 +0200)
commit3196e423931666511b24c701fb382416af5dc709
tree319a6dd6683652478d437a9f5374f9845551a5e4
parentcaf6bd166f6521e1e33a25c39bb2e1b05d61b733
core: merge a few if blocks

arg_system == true and getpid() == 1 hold under the very same condition
this early in the main() function (this only changes later when we start
parsing command lines, where arg_system = true is set if users invoke us
in test mode even when getpid() != 1.

Hence, let's simplify things, and merge a couple of if branches and not
pretend they were orthogonal.
src/core/main.c