commit: 83cd7145e3e7c3ac453b6a87214cf5704e3875ce
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Sat Dec 5 23:47:47 2015 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> 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);