summaryrefslogtreecommitdiff
path: root/src/shared/mount-setup.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-03-16 22:32:23 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-03-19 08:33:33 +0900
commitde010b0b2e50cf0b3837ce350b116bc92605f67a (patch)
tree226685fbb97461692562035501ebc21a314f718c /src/shared/mount-setup.c
parent80a226b26b5e00a2ef9e85d1321da44cd14d051b (diff)
downloadsystemd-de010b0b2e50cf0b3837ce350b116bc92605f67a.tar.gz
strv: make iterator in STRV_FOREACH() declaread in the loop
This also avoids multiple evaluations in STRV_FOREACH_BACKWARDS()
Diffstat (limited to 'src/shared/mount-setup.c')
-rw-r--r--src/shared/mount-setup.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/shared/mount-setup.c b/src/shared/mount-setup.c
index 7917968497..eb6dac32e1 100644
--- a/src/shared/mount-setup.c
+++ b/src/shared/mount-setup.c
@@ -247,8 +247,6 @@ static const char *join_with(const char *controller) {
NULL
};
- const char *const *x, *const *y;
-
assert(controller);
/* This will lookup which controller to mount another controller with. Input is a controller name, and output
@@ -436,7 +434,6 @@ static int relabel_cgroup_filesystems(void) {
static int relabel_extra(void) {
_cleanup_strv_free_ char **files = NULL;
- char **file;
int r, c = 0;
/* Support for relabelling additional files or directories after loading the policy. For this, code in the