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/shared/condition.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/shared/condition.c')
-rw-r--r-- | src/shared/condition.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/condition.c b/src/shared/condition.c index 7563f29c94..b08cd959a0 100644 --- a/src/shared/condition.c +++ b/src/shared/condition.c @@ -141,7 +141,6 @@ static int condition_test_kernel_command_line(Condition *c, char **env) { } static int condition_test_credential(Condition *c, char **env) { - int (*gd)(const char **ret); int r; assert(c); @@ -155,7 +154,8 @@ static int condition_test_credential(Condition *c, char **env) { if (!credential_name_valid(c->parameter)) /* credentials with invalid names do not exist */ return false; - FOREACH_POINTER(gd, get_credentials_dir, get_encrypted_credentials_dir) { + int (*gd)(const char **ret); + FOREACH_ARGUMENT(gd, get_credentials_dir, get_encrypted_credentials_dir) { _cleanup_free_ char *j = NULL; const char *cd; |