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 C86941384B4 for ; Sun, 6 Dec 2015 00:14:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8900F21C04C; Sun, 6 Dec 2015 00:14:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2879221C04C for ; Sun, 6 Dec 2015 00:14:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 024A7340923 for ; Sun, 6 Dec 2015 00:14:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2AC7AC6F for ; Sun, 6 Dec 2015 00:14:22 +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: <1449359267.83cd7145e3e7c3ac453b6a87214cf5704e3875ce.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/_usage.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 83cd7145e3e7c3ac453b6a87214cf5704e3875ce X-VCS-Branch: master Date: Sun, 6 Dec 2015 00:14:22 +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: 7b808b7c-fedb-447d-827b-d93cfcf28491 X-Archives-Hash: 8832ab963c4e3a4b4459bbf2748231c6 commit: 83cd7145e3e7c3ac453b6a87214cf5704e3875ce Author: William Hubbs gmail com> AuthorDate: Sat Dec 5 23:47:47 2015 +0000 Commit: William Hubbs gentoo org> CommitDate: Sat Dec 5 23:47:47 2015 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=83cd7145 Rename bootlevel variable in _usage.c In src/rc/_usage.c, we were using bootlevel as the variable to hold the return value of rc_sys. This changes the variable name to systype because this function returns a system type, not a runlevel. src/rc/_usage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rc/_usage.c b/src/rc/_usage.c index a95e93f..2ab0fa6 100644 --- a/src/rc/_usage.c +++ b/src/rc/_usage.c @@ -53,11 +53,11 @@ static void set_quiet_options(void) _noreturn static void show_version(void) { - const char *bootlevel = NULL; + const char *systype = NULL; printf("%s (OpenRC", applet); - if ((bootlevel = rc_sys())) - printf(" [%s]", bootlevel); + if ((systype = rc_sys())) + printf(" [%s]", systype); printf(") %s", VERSION); #ifdef BRANDING printf(" (%s)", BRANDING);