summaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-22 04:42:26 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-22 04:43:28 +0100
commitdb813c2a9199d694f8e97618889425a2401524d6 (patch)
tree33712bedc54dd22c866f258816b67915b59e6a0e /src/core/main.c
parente2b1eb2661e95c8e3d03c5f7183a234fea990b68 (diff)
main: use strv_find() where we can
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 21c0d274c6..05f0803b8b 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1310,19 +1310,13 @@ int main(int argc, char *argv[]) {
/* Determine if this is a reexecution or normal bootup. We do
* the full command line parsing much later, so let's just
* have a quick peek here. */
- for (j = 1; j < argc; j++)
- if (streq(argv[j], "--deserialize")) {
- skip_setup = true;
- break;
- }
+ if (strv_find(argv+1, "--deserialize"))
+ skip_setup = true;
/* If we have switched root, do all the special setup
* things */
- for (j = 1; j < argc; j++)
- if (streq(argv[j], "--switched-root")) {
- skip_setup = false;
- break;
- }
+ if (strv_find(argv+1, "--switched-root"))
+ skip_setup = false;
/* If we get started via the /sbin/init symlink then we are
called 'init'. After a subsequent reexecution we are then