Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/
Date: Mon, 15 Oct 2018 16:52:59
Message-Id: 1539449634.07908be0903229a69b9e0f733ed13eeff0b55a44.williamh@OpenRC
1 commit: 07908be0903229a69b9e0f733ed13eeff0b55a44
2 Author: Austin English <austinenglish <AT> gmail <DOT> com>
3 AuthorDate: Fri Oct 12 22:16:33 2018 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 13 16:53:54 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=07908be0
7
8 misc: style fixups
9
10 src/rc/kill_all.c | 2 +-
11 src/rc/openrc-init.c | 4 ++--
12 2 files changed, 3 insertions(+), 3 deletions(-)
13
14 diff --git a/src/rc/kill_all.c b/src/rc/kill_all.c
15 index 0833e5f8..bc079dea 100644
16 --- a/src/rc/kill_all.c
17 +++ b/src/rc/kill_all.c
18 @@ -58,7 +58,7 @@ static int mount_proc(void)
19 if (exists("/proc/version"))
20 return 0;
21 pid = fork();
22 - switch(pid) {
23 + switch (pid) {
24 case -1:
25 syslog(LOG_ERR, "Unable to fork");
26 return -1;
27
28 diff --git a/src/rc/openrc-init.c b/src/rc/openrc-init.c
29 index e02fa5ee..e557c63d 100644
30 --- a/src/rc/openrc-init.c
31 +++ b/src/rc/openrc-init.c
32 @@ -45,7 +45,7 @@ static pid_t do_openrc(const char *runlevel)
33 sigset_t signals;
34
35 pid = fork();
36 - switch(pid) {
37 + switch (pid) {
38 case -1:
39 perror("fork");
40 break;
41 @@ -139,7 +139,7 @@ static void reap_zombies(void)
42
43 static void signal_handler(int sig)
44 {
45 - switch(sig) {
46 + switch (sig) {
47 case SIGINT:
48 handle_shutdown("reboot", RB_AUTOBOOT);
49 break;