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
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user