nspawn: rework mount_systemd_cgroup_writable() a bit
authorLennart Poettering <lennart@poettering.net>
Fri, 17 Nov 2017 12:05:30 +0000 (13:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 21 Nov 2017 10:54:08 +0000 (11:54 +0100)
commitea9053c5f8eaae748683848ed807e7dbf30d85a7
tree0450af2717fe7b0144b0361cb1369e54304cb34b
parent68ac0d05a97f43ad2ded5667c4c499f07def6728
nspawn: rework mount_systemd_cgroup_writable() a bit

We shouldn't call alloca() as part of function calls, that's not really
defined in C. Hence, let's first do our stack allocations, and then
invoke functions.

Also, some coding style fixes, and minor shuffling around.

No functional changes.
src/nspawn/nspawn-mount.c