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)/'
This commit is contained in:
Matteo Croce
2024-04-18 17:39:34 +02:00
parent 64f7b2961a
commit 854711645b
26 changed files with 36 additions and 36 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ int make_inaccessible_nodes(
* to lock down these nodes as much as we can, but otherwise try to match them as closely as possible with the
* underlying file, i.e. in the best case we offer the same node type as the underlying node. */
FOREACH_ARRAY(m, table, ELEMENTSOF(table)) {
FOREACH_ELEMENT(m, table) {
_cleanup_free_ char *path = NULL;
mode_t inode_type = *m;
const char *fn;