From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 312DB138334 for ; Mon, 15 Oct 2018 16:52:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3B6C8E0819; Mon, 15 Oct 2018 16:52:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 19729E0819 for ; Mon, 15 Oct 2018 16:52:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4FF8C335CE4 for ; Mon, 15 Oct 2018 16:52:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0B191439 for ; Mon, 15 Oct 2018 16:52:52 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1539449634.07908be0903229a69b9e0f733ed13eeff0b55a44.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/kill_all.c src/rc/openrc-init.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 07908be0903229a69b9e0f733ed13eeff0b55a44 X-VCS-Branch: master Date: Mon, 15 Oct 2018 16:52:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 737d98f6-4436-492e-a547-f626986e6eff X-Archives-Hash: 68ba1cc31d7ced9cd19c96b2a894c806 commit: 07908be0903229a69b9e0f733ed13eeff0b55a44 Author: Austin English gmail com> AuthorDate: Fri Oct 12 22:16:33 2018 +0000 Commit: William Hubbs gentoo org> CommitDate: Sat Oct 13 16:53:54 2018 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=07908be0 misc: style fixups src/rc/kill_all.c | 2 +- src/rc/openrc-init.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rc/kill_all.c b/src/rc/kill_all.c index 0833e5f8..bc079dea 100644 --- a/src/rc/kill_all.c +++ b/src/rc/kill_all.c @@ -58,7 +58,7 @@ static int mount_proc(void) if (exists("/proc/version")) return 0; pid = fork(); - switch(pid) { + switch (pid) { case -1: syslog(LOG_ERR, "Unable to fork"); return -1; diff --git a/src/rc/openrc-init.c b/src/rc/openrc-init.c index e02fa5ee..e557c63d 100644 --- a/src/rc/openrc-init.c +++ b/src/rc/openrc-init.c @@ -45,7 +45,7 @@ static pid_t do_openrc(const char *runlevel) sigset_t signals; pid = fork(); - switch(pid) { + switch (pid) { case -1: perror("fork"); break; @@ -139,7 +139,7 @@ static void reap_zombies(void) static void signal_handler(int sig) { - switch(sig) { + switch (sig) { case SIGINT: handle_shutdown("reboot", RB_AUTOBOOT); break;