diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-08 11:58:29 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-08 12:14:05 +0200 |
commit | 90e74a66e663f1776457d599cb7d5ce44785a56c (patch) | |
tree | 16ce28594b8dc475e37df9a3b80accb96e748efa /src/systemctl/systemctl.c | |
parent | 12375b95ddcb7dbbcbc5969b87822d39115d8acf (diff) | |
download | systemd-90e74a66e663f1776457d599cb7d5ce44785a56c.tar.gz |
tree-wide: define iterator inside of the macro
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r-- | src/systemctl/systemctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index e22efb92ac..71fd3af1a3 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -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; |