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/pcrlock | |
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/pcrlock')
-rw-r--r-- | src/pcrlock/pcrlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcrlock/pcrlock.c b/src/pcrlock/pcrlock.c index 1fb9d692a2..f6b76d291b 100644 --- a/src/pcrlock/pcrlock.c +++ b/src/pcrlock/pcrlock.c @@ -2816,7 +2816,7 @@ static int verb_lock_secureboot_policy(int argc, char *argv[], void *userdata) { /* Generates expected records from the current SecureBoot state, as readable in the EFI variables * right now. */ - FOREACH_ARRAY(vv, variables, ELEMENTSOF(variables)) { + FOREACH_ELEMENT(vv, variables) { _cleanup_(json_variant_unrefp) JsonVariant *record = NULL; _cleanup_free_ char *name = NULL; |