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/getty-generator | |
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/getty-generator')
-rw-r--r-- | src/getty-generator/getty-generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/getty-generator/getty-generator.c b/src/getty-generator/getty-generator.c index 288f91cedf..acce71b1a8 100644 --- a/src/getty-generator/getty-generator.c +++ b/src/getty-generator/getty-generator.c @@ -150,7 +150,7 @@ static int add_credential_gettys(void) { }; int r; - FOREACH_ARRAY(t, table, ELEMENTSOF(table)) { + FOREACH_ELEMENT(t, table) { _cleanup_free_ char *b = NULL; size_t sz = 0; |