]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
portable: inline one variable declaration
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 3 Mar 2022 18:13:20 +0000 (19:13 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 7 Mar 2022 13:32:01 +0000 (14:32 +0100)
src/portable/portabled-image-bus.c

index 6660498e51fbffdd12b685484091c5787e05ffdc..43d69d30e10114a0797df8dbb3e25c8cbe9761e5 100644 (file)
@@ -109,7 +109,6 @@ int bus_image_common_get_metadata(
         _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL;
         _cleanup_free_ PortableMetadata **sorted = NULL;
         PortableFlags flags = 0;
-        size_t i;
         int r;
 
         assert(name_or_path || image);
@@ -217,7 +216,7 @@ int bus_image_common_get_metadata(
                 }
         }
 
-        for (i = 0; i < hashmap_size(unit_files); i++) {
+        for (size_t i = 0; i < hashmap_size(unit_files); i++) {
 
                 r = sd_bus_message_open_container(reply, 'e', "say");
                 if (r < 0)