From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Rg6G0-0003z8-CT for garchives@archives.gentoo.org; Thu, 29 Dec 2011 03:02:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0277221C17F for ; Thu, 29 Dec 2011 03:02:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 49A8821C08A for ; Thu, 29 Dec 2011 02:10:51 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C45CB1B405F for ; Thu, 29 Dec 2011 02:10:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 0CDF380043 for ; Thu, 29 Dec 2011 02:10:50 +0000 (UTC) From: "Christian Ruppert" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christian Ruppert" Message-ID: Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/rc-logger.c X-VCS-Directories: src/rc/ X-VCS-Committer: idl0r X-VCS-Committer-Name: Christian Ruppert X-VCS-Revision: b754a27f627ddeab57835761058ee0fd2e1cac42 Date: Thu, 29 Dec 2011 02:10:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: b26690c4-3619-4e34-909d-9853b331be3d X-Archives-Hash: 2cf57266d5cdf5283765d340276db338 commit: b754a27f627ddeab57835761058ee0fd2e1cac42 Author: Christian Ruppert gentoo org> AuthorDate: Thu Dec 29 02:08:29 2011 +0000 Commit: Christian Ruppert gentoo org> CommitDate: Thu Dec 29 02:08:29 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3Db754a27f Remove useless rc_runlevel_get() call The current runlevel will be passed to rc_logger_open() already. --- src/rc/rc-logger.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/rc/rc-logger.c b/src/rc/rc-logger.c index 8f3b218..2b0c6be 100644 --- a/src/rc/rc-logger.c +++ b/src/rc/rc-logger.c @@ -280,7 +280,7 @@ rc_logger_open(const char *level) * logfile or its basedir may be read-only during shutdown so skip * the error in this case */ - if (strcmp(rc_runlevel_get(), "shutdown") !=3D 0) { + if (strcmp(level, "shutdown") !=3D 0) { log_error =3D 1; eerror("Error: fopen(%s) failed: %s", logfile, strerror(errno)); }