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/test/test-install-root.c | |
parent | 12375b95ddcb7dbbcbc5969b87822d39115d8acf (diff) | |
download | systemd-90e74a66e663f1776457d599cb7d5ce44785a56c.tar.gz |
tree-wide: define iterator inside of the macro
Diffstat (limited to 'src/test/test-install-root.c')
-rw-r--r-- | src/test/test-install-root.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test-install-root.c b/src/test/test-install-root.c index f309160889..6fb2fd4298 100644 --- a/src/test/test-install-root.c +++ b/src/test/test-install-root.c @@ -548,7 +548,6 @@ static void test_preset_and_list(const char *root) { const char *p, *q; UnitFileState state; bool got_yes = false, got_no = false; - Iterator j; UnitFileList *fl; Hashmap *h; @@ -631,7 +630,7 @@ static void test_preset_and_list(const char *root) { p = strjoina(root, "/usr/lib/systemd/system/preset-yes.service"); q = strjoina(root, "/usr/lib/systemd/system/preset-no.service"); - HASHMAP_FOREACH(fl, h, j) { + HASHMAP_FOREACH(fl, h) { assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, basename(fl->path), &state) >= 0); assert_se(fl->state == state); |