From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6AEF71381F3 for ; Mon, 26 Aug 2013 22:26:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 945DCE0CCD; Mon, 26 Aug 2013 22:26:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 34780E0CCD for ; Mon, 26 Aug 2013 22:26:34 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4F73F33EB23 for ; Mon, 26 Aug 2013 22:26:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 02918E468F for ; Mon, 26 Aug 2013 22:26:32 +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: <1377554958.5c3e5d801b7ea536f6ea4a993076965c978f0e81.WilliamH@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/start-stop-daemon.c X-VCS-Directories: src/rc/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 5c3e5d801b7ea536f6ea4a993076965c978f0e81 X-VCS-Branch: master Date: Mon, 26 Aug 2013 22:26:32 +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: c9dc1290-64fb-41c2-b9af-4621510b8779 X-Archives-Hash: 44bb671da55d6d408bced832baceeba0 commit: 5c3e5d801b7ea536f6ea4a993076965c978f0e81 Author: William Hubbs gmail com> AuthorDate: Mon Aug 26 22:09:18 2013 +0000 Commit: William Hubbs gentoo org> CommitDate: Mon Aug 26 22:09:18 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=5c3e5d80 start-stop-daemon: remove redundant test of the quiet value The einfo() function tests for the EINFO_QUIET environment variable directly, and this is the variable that is set by the --quiet flag, so there was no reason for this test to exist. --- src/rc/start-stop-daemon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index 4b9fcdd..ca40da6 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -355,8 +355,7 @@ do_stop(const char *exec, const char *const *argv, LIST_FOREACH_SAFE(pi, pids, entries, np) { if (test) { - if (!quiet) - einfo("Would send signal %d to PID %d", sig, pi->pid); + einfo("Would send signal %d to PID %d", sig, pi->pid); nkilled++; } else { if (verbose)