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: