1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-09 12:58:26 +03:00

core: minor coding style modernization in mount.c

This commit is contained in:
Lennart Poettering 2023-03-23 23:16:21 +01:00
parent 0de3431871
commit ef25552e8b

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;
}