]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/systemctl/systemctl.c
tree-wide: define iterator inside of the macro
[thirdparty/systemd.git] / src / systemctl / systemctl.c
index e22efb92ac5058fa5aac611cfe6b689b9179bff1..71fd3af1a3c8ea708cf04186c17af43f47451540 100644 (file)
@@ -1546,7 +1546,6 @@ static int list_unit_files(int argc, char *argv[], void *userdata) {
         if (install_client_side()) {
                 Hashmap *h;
                 UnitFileList *u;
-                Iterator i;
                 unsigned n_units;
 
                 h = hashmap_new(&string_hash_ops);
@@ -1567,7 +1566,7 @@ static int list_unit_files(int argc, char *argv[], void *userdata) {
                         return log_oom();
                 }
 
-                HASHMAP_FOREACH(u, h, i) {
+                HASHMAP_FOREACH(u, h) {
                         if (!output_show_unit_file(u, NULL, NULL))
                                 continue;