From de010b0b2e50cf0b3837ce350b116bc92605f67a Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 16 Mar 2022 22:32:23 +0900 Subject: strv: make iterator in STRV_FOREACH() declaread in the loop This also avoids multiple evaluations in STRV_FOREACH_BACKWARDS() --- src/shared/mount-setup.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/shared/mount-setup.c') 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 -- cgit v1.2.1