]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/dropin.c
tree-wide: define iterator inside of the macro
[thirdparty/systemd.git] / src / shared / dropin.c
index 932da0c8531eb5fb0e949b361ad6f4977da4ebb5..6c614b5c0a4851157b7c1f9606182533bf6e7a26 100644 (file)
@@ -233,7 +233,6 @@ int unit_file_find_dropin_paths(
         _cleanup_strv_free_ char **dirs = NULL;
         const char *n;
         char **p;
-        Iterator i;
         int r;
 
         assert(ret);
@@ -242,7 +241,7 @@ int unit_file_find_dropin_paths(
                 STRV_FOREACH(p, lookup_path)
                         (void) unit_file_find_dirs(original_root, unit_path_cache, *p, name, dir_suffix, &dirs);
 
-        SET_FOREACH(n, aliases, i)
+        SET_FOREACH(n, aliases)
                 STRV_FOREACH(p, lookup_path)
                         (void) unit_file_find_dirs(original_root, unit_path_cache, *p, n, dir_suffix, &dirs);