]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/unit-file.c
tree-wide: define iterator inside of the macro
[thirdparty/systemd.git] / src / shared / unit-file.c
index 0f030ae4313f17303b85f107afcdbb500634f804..3b51c7c9986e398caf2b3aa34a040b0635b697a3 100644 (file)
@@ -399,9 +399,8 @@ int unit_file_build_name_map(
         }
 
         /* Let's also put the names in the reverse db. */
-        Iterator it;
         const char *dummy, *src;
-        HASHMAP_FOREACH_KEY(dummy, src, ids, it) {
+        HASHMAP_FOREACH_KEY(dummy, src, ids) {
                 const char *dst;
 
                 r = unit_ids_map_get(ids, src, &dst);