From: Zbigniew Jędrzejewski-Szmek Date: Thu, 3 Mar 2022 18:13:20 +0000 (+0100) Subject: portable: inline one variable declaration X-Git-Tag: v251-rc1~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90e3f3581dd578a23aec9f63ca846babfe4fcaa0;p=thirdparty%2Fsystemd.git portable: inline one variable declaration --- diff --git a/src/portable/portabled-image-bus.c b/src/portable/portabled-image-bus.c index 6660498e51f..43d69d30e10 100644 --- a/src/portable/portabled-image-bus.c +++ b/src/portable/portabled-image-bus.c @@ -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)