]> git.ipfire.org Git - thirdparty/systemd.git/commit
vmspawn: use indexed loop
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 19 Jan 2026 14:14:26 +0000 (23:14 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 19 Jan 2026 17:26:35 +0000 (02:26 +0900)
commit8a5fb3627a1518d2d2ef70919c81448158d64ac0
treea60efdde133fbd88a3a150b633d5394fa341f4d9
parent3d2284c7db15872e9002d8f7ee58c43765858b22
vmspawn: use indexed loop

Previously, the index is obtained from the pointer offset. The
pointer offset is expressed by ptrdiff_t and may be different from
ssize_t.

Let's avoid to use FOREACH_ARRAY() but use an indexed loop.
This also renames `mount` to `m` to avoid conflict with `mount()`.

Fixes #40380.
src/vmspawn/vmspawn.c