summaryrefslogtreecommitdiffstats
path: root/src/nspawn/nspawn-bind-user.c
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2024-01-16 22:42:39 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2024-01-17 11:09:09 +0100
commitfdd84270df0062fad68783eea8b51a6ed87b67cd (patch)
treef9ffb4c83cf936232efc5dfc4752475b2ab8de91 /src/nspawn/nspawn-bind-user.c
parentsystemctl-is-system-running: display "offline" with --image (diff)
downloadsystemd-fdd84270df0062fad68783eea8b51a6ed87b67cd.tar.xz
systemd-fdd84270df0062fad68783eea8b51a6ed87b67cd.zip
Reorder arguments for calloc()-like functions, part #2
To appease gcc-14's -Wcalloc-transposed-args check. Follow-up for 2a9ab0974bb290bc66dc84d909c33d23361b0752.
Diffstat (limited to 'src/nspawn/nspawn-bind-user.c')
-rw-r--r--src/nspawn/nspawn-bind-user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn-bind-user.c b/src/nspawn/nspawn-bind-user.c
index c7e1a9253c..018e7a37e2 100644
--- a/src/nspawn/nspawn-bind-user.c
+++ b/src/nspawn/nspawn-bind-user.c
@@ -286,7 +286,7 @@ int bind_user_prepare(
if (!sd)
return log_oom();
- cm = reallocarray(*custom_mounts, sizeof(CustomMount), *n_custom_mounts + 1);
+ cm = reallocarray(*custom_mounts, *n_custom_mounts + 1, sizeof(CustomMount));
if (!cm)
return log_oom();