]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: rework operation_to_signal() to rename return parameter ret_xyz
authorLennart Poettering <lennart@poettering.net>
Mon, 2 Jan 2023 12:32:33 +0000 (13:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 2 Jan 2023 15:34:42 +0000 (16:34 +0100)
src/core/unit.c

index 59e721d3e7066ac7161e158c6772c3b03d1c86b1..3b27e6e6d4c8936cb753ae7e72ba11e39eae6251 100644 (file)
@@ -4511,26 +4511,30 @@ static int log_kill(pid_t pid, int sig, void *userdata) {
         return 1;
 }
 
-static int operation_to_signal(const KillContext *c, KillOperation k, bool *noteworthy) {
+static int operation_to_signal(
+                const KillContext *c,
+                KillOperation k,
+                bool *ret_noteworthy) {
+
         assert(c);
 
         switch (k) {
 
         case KILL_TERMINATE:
         case KILL_TERMINATE_AND_LOG:
-                *noteworthy = false;
+                *ret_noteworthy = false;
                 return c->kill_signal;
 
         case KILL_RESTART:
-                *noteworthy = false;
+                *ret_noteworthy = false;
                 return restart_kill_signal(c);
 
         case KILL_KILL:
-                *noteworthy = true;
+                *ret_noteworthy = true;
                 return c->final_kill_signal;
 
         case KILL_WATCHDOG:
-                *noteworthy = true;
+                *ret_noteworthy = true;
                 return c->watchdog_signal;
 
         default: