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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user