misc: style fixups

This commit is contained in:
Austin English 2018-10-12 17:16:33 -05:00 committed by Mike Frysinger
parent 02af093043
commit 07908be090
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ static int mount_proc(void)
if (exists("/proc/version")) if (exists("/proc/version"))
return 0; return 0;
pid = fork(); pid = fork();
switch(pid) { switch (pid) {
case -1: case -1:
syslog(LOG_ERR, "Unable to fork"); syslog(LOG_ERR, "Unable to fork");
return -1; return -1;

View File

@ -45,7 +45,7 @@ static pid_t do_openrc(const char *runlevel)
sigset_t signals; sigset_t signals;
pid = fork(); pid = fork();
switch(pid) { switch (pid) {
case -1: case -1:
perror("fork"); perror("fork");
break; break;
@ -139,7 +139,7 @@ static void reap_zombies(void)
static void signal_handler(int sig) static void signal_handler(int sig)
{ {
switch(sig) { switch (sig) {
case SIGINT: case SIGINT:
handle_shutdown("reboot", RB_AUTOBOOT); handle_shutdown("reboot", RB_AUTOBOOT);
break; break;