diff options
author | Matteo Croce <teknoraver@meta.com> | 2024-04-18 14:31:39 +0200 |
---|---|---|
committer | Matteo Croce <teknoraver@meta.com> | 2024-04-18 17:39:34 +0200 |
commit | 854711645b2b7801bd9a0123f3067dcc052f2557 (patch) | |
tree | 47b6afe3a6e58dc5c9625d52477a7f9e94888c1b /src/test/test-creds.c | |
parent | introduce FOREACH_ELEMENT (diff) | |
download | systemd-854711645b2b7801bd9a0123f3067dcc052f2557.tar.xz systemd-854711645b2b7801bd9a0123f3067dcc052f2557.zip |
use FOREACH_ELEMENT
Use FOREACH_ELEMENT where possible. Generated with this command,
and checked manually:
git grep -l 'FOREACH_ARRAY.*ELEMENTSOF' | \
xargs sed -ri 's/FOREACH_ARRAY\((.*), (.*), (ELEMENTSOF.*)\)/FOREACH_ELEMENT(\1, \2)/'
Diffstat (limited to 'src/test/test-creds.c')
-rw-r--r-- | src/test/test-creds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-creds.c b/src/test/test-creds.c index 84619c91de..cc9cc73778 100644 --- a/src/test/test-creds.c +++ b/src/test/test-creds.c @@ -243,7 +243,7 @@ TEST(mime_type_matches) { }; /* Generates the right <match/> expressions for these credentials according to the shared mime-info spec */ - FOREACH_ARRAY(t, tags, ELEMENTSOF(tags)) { + FOREACH_ELEMENT(t, tags) { _cleanup_free_ char *encoded = NULL; assert_se(base64mem(t, sizeof(sd_id128_t), &encoded) >= 0); |