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.
This commit is contained in:
parent
a67e3495d0
commit
83cd7145e3
@ -53,11 +53,11 @@ static void set_quiet_options(void)
|
|||||||
_noreturn static void
|
_noreturn static void
|
||||||
show_version(void)
|
show_version(void)
|
||||||
{
|
{
|
||||||
const char *bootlevel = NULL;
|
const char *systype = NULL;
|
||||||
|
|
||||||
printf("%s (OpenRC", applet);
|
printf("%s (OpenRC", applet);
|
||||||
if ((bootlevel = rc_sys()))
|
if ((systype = rc_sys()))
|
||||||
printf(" [%s]", bootlevel);
|
printf(" [%s]", systype);
|
||||||
printf(") %s", VERSION);
|
printf(") %s", VERSION);
|
||||||
#ifdef BRANDING
|
#ifdef BRANDING
|
||||||
printf(" (%s)", BRANDING);
|
printf(" (%s)", BRANDING);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user