From: Lennart Poettering Date: Thu, 23 Mar 2023 22:16:21 +0000 (+0100) Subject: core: minor coding style modernization in mount.c X-Git-Tag: v254-rc1~565 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef25552e8b3b63e655f94106570fd5978fb3aa87;p=thirdparty%2Fsystemd.git core: minor coding style modernization in mount.c --- diff --git a/src/core/mount.c b/src/core/mount.c index 586151bf67b..549d7dbf986 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; }