diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-03 19:13:20 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-03-07 14:32:01 +0100 |
commit | 90e3f3581dd578a23aec9f63ca846babfe4fcaa0 (patch) | |
tree | f6a83c21c0afdbb0fc55934a858ddf98f5fd2115 /src/portable | |
parent | portablectl: reorder if branches to match previous conditional in the same fu... (diff) | |
download | systemd-90e3f3581dd578a23aec9f63ca846babfe4fcaa0.tar.xz systemd-90e3f3581dd578a23aec9f63ca846babfe4fcaa0.zip |
portable: inline one variable declaration
Diffstat (limited to 'src/portable')
-rw-r--r-- | src/portable/portabled-image-bus.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/portable/portabled-image-bus.c b/src/portable/portabled-image-bus.c index 6660498e51..43d69d30e1 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) |