]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: adjust indentation
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Jul 2023 07:58:03 +0000 (09:58 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Jul 2023 08:56:52 +0000 (10:56 +0200)
One of the two conditionals in the function had different indentation than the
other.

src/shared/exit-status.c

index 623adda89e755d3d99f0c64342580c63bf8fdb67..0ac688b7635174f18dc671514a156d5a2b844b04 100644 (file)
@@ -145,12 +145,11 @@ bool is_clean_exit(int code, int status, ExitClean clean, const ExitStatusSet *s
                         bitmap_isset(&success_status->status, status));
 
         /* If a daemon does not implement handlers for some of the signals, we do not consider this an
-           unclean shutdown */
+         * unclean shutdown */
         if (code == CLD_KILLED)
-                return
-                        (clean == EXIT_CLEAN_DAEMON && IN_SET(status, SIGHUP, SIGINT, SIGTERM, SIGPIPE)) ||
-                        (success_status &&
-                         bitmap_isset(&success_status->signal, status));
+                return (clean == EXIT_CLEAN_DAEMON && IN_SET(status, SIGHUP, SIGINT, SIGTERM, SIGPIPE)) ||
+                       (success_status &&
+                        bitmap_isset(&success_status->signal, status));
 
         return false;
 }