core: minor coding style modernization in mount.c

This commit is contained in:
Lennart Poettering
2023-05-03 18:26:39 +02:00
parent 0de3431871
commit ef25552e8b
+3 -4
View File
@@ -885,7 +885,7 @@ static void mount_dump(Unit *u, FILE *f, const char *prefix) {
cgroup_context_dump(UNIT(m), f, prefix);
}
static int mount_spawn(Mount *m, ExecCommand *c, pid_t *_pid) {
static int mount_spawn(Mount *m, ExecCommand *c, pid_t *ret_pid) {
_cleanup_(exec_params_clear) ExecParameters exec_params = {
.flags = EXEC_APPLY_SANDBOXING|EXEC_APPLY_CHROOT|EXEC_APPLY_TTY_STDIN,
@@ -899,7 +899,7 @@ static int mount_spawn(Mount *m, ExecCommand *c, pid_t *_pid) {
assert(m);
assert(c);
assert(_pid);
assert(ret_pid);
r = unit_prepare_exec(UNIT(m));
if (r < 0)
@@ -927,8 +927,7 @@ static int mount_spawn(Mount *m, ExecCommand *c, pid_t *_pid) {
if (r < 0)
return r;
*_pid = pid;
*ret_pid = pid;
return 0;
}