diff options
author | Integral <integral@member.fsf.org> | 2024-10-26 00:10:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-26 00:10:22 +0200 |
commit | ddb8a639d5d1f9a0ebfa790805703cf381a42459 (patch) | |
tree | ee6fcdfcecd1ab5c5e4840d41e901d73f1ec38a2 /src/udev/udevadm.c | |
parent | Merge pull request #34884 from poettering/run0-disconnect-fix (diff) | |
download | systemd-ddb8a639d5d1f9a0ebfa790805703cf381a42459.tar.xz systemd-ddb8a639d5d1f9a0ebfa790805703cf381a42459.zip |
tree-wide: replace for loop with FOREACH_ELEMENT or FOREACH_ARRAY macros (#34893)
Diffstat (limited to '')
-rw-r--r-- | src/udev/udevadm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/udev/udevadm.c b/src/udev/udevadm.c index 899d4e6f7f..30b6ddb728 100644 --- a/src/udev/udevadm.c +++ b/src/udev/udevadm.c @@ -31,7 +31,6 @@ static int help(void) { }; _cleanup_free_ char *link = NULL; - size_t i; int r; r = terminal_urlify_man("udevadm", "8", &link); @@ -43,8 +42,8 @@ static int help(void) { "Commands:\n", program_invocation_short_name); - for (i = 0; i < ELEMENTSOF(short_descriptions); i++) - printf(" %-12s %s\n", short_descriptions[i][0], short_descriptions[i][1]); + FOREACH_ELEMENT(desc, short_descriptions) + printf(" %-12s %s\n", (*desc)[0], (*desc)[1]); printf("\nSee the %s for details.\n", link); return 0; |