]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: minor coding style modernization in mount.c
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Mar 2023 22:16:21 +0000 (23:16 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 3 May 2023 16:26:39 +0000 (18:26 +0200)
src/core/mount.c

index 586151bf67bbacdd30affef314dfedd23f7def65..549d7dbf986f76ec3c2febbea2ca8b9aa71cffda 100644 (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;
 }