diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-01-24 09:51:58 +0100 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-01-24 14:29:11 +0100 |
commit | 2d708781620239c9d1f9828a39f8761acf6350b2 (patch) | |
tree | a97cc7c3b09b336f4aeae7285e3a15e7af51120f /src/basic/mountpoint-util.c | |
parent | macro: rename VA_ARGS_FOREACH to FOREACH_ARGUMENT (diff) | |
download | systemd-2d708781620239c9d1f9828a39f8761acf6350b2.tar.xz systemd-2d708781620239c9d1f9828a39f8761acf6350b2.zip |
tree-wide: replace FOREACH_POINTER with FOREACH_ARGUMENT
The latter is more generic and while being compatible with
the former.
Diffstat (limited to 'src/basic/mountpoint-util.c')
-rw-r--r-- | src/basic/mountpoint-util.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/basic/mountpoint-util.c b/src/basic/mountpoint-util.c index bf67f7e01a..0ff1ed6018 100644 --- a/src/basic/mountpoint-util.c +++ b/src/basic/mountpoint-util.c @@ -446,14 +446,15 @@ bool fstype_needs_quota(const char *fstype) { } bool fstype_is_api_vfs(const char *fstype) { - const FilesystemSet *fs; + assert(fstype); - FOREACH_POINTER(fs, - filesystem_sets + FILESYSTEM_SET_BASIC_API, - filesystem_sets + FILESYSTEM_SET_AUXILIARY_API, - filesystem_sets + FILESYSTEM_SET_PRIVILEGED_API, - filesystem_sets + FILESYSTEM_SET_TEMPORARY) - if (nulstr_contains(fs->value, fstype)) + const FilesystemSet *fs; + FOREACH_ARGUMENT(fs, + filesystem_sets + FILESYSTEM_SET_BASIC_API, + filesystem_sets + FILESYSTEM_SET_AUXILIARY_API, + filesystem_sets + FILESYSTEM_SET_PRIVILEGED_API, + filesystem_sets + FILESYSTEM_SET_TEMPORARY) + if (nulstr_contains(fs->value, fstype)) return true; /* Filesystems not present in the internal database */ |