diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-03-23 23:16:21 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-05-03 18:26:39 +0200 |
commit | ef25552e8b3b63e655f94106570fd5978fb3aa87 (patch) | |
tree | f5822a13837b0d48cc15c5b54e66cd3246be7158 /src/core/mount.c | |
parent | sd-daemon: add sd_pid_notify_barrier() call and use it in systemd-notify (diff) | |
download | systemd-ef25552e8b3b63e655f94106570fd5978fb3aa87.tar.xz systemd-ef25552e8b3b63e655f94106570fd5978fb3aa87.zip |
core: minor coding style modernization in mount.c
Diffstat (limited to 'src/core/mount.c')
-rw-r--r-- | src/core/mount.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index 586151bf67..549d7dbf98 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -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; } |