aboutsummaryrefslogtreecommitdiff
path: root/src/rc/_usage.c
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2016-01-18 15:50:50 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-01-18 15:50:59 -0600
commitf79a7a7be18d68bf264efc60d82838d03048da6b (patch)
treeaafef3e54f7f4e235e6446f2643a9d299ccee97d /src/rc/_usage.c
parent73482cf13a338051606788957cbd0031ac850c70 (diff)
rc: make get_systype similar to the old rc_sys function
Diffstat (limited to 'src/rc/_usage.c')
-rw-r--r--src/rc/_usage.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rc/_usage.c b/src/rc/_usage.c
index 9fc3e5d8..40d81422 100644
--- a/src/rc/_usage.c
+++ b/src/rc/_usage.c
@@ -44,12 +44,9 @@ void set_quiet_options(void)
_noreturn void show_version(void)
{
- const char *systype = NULL;
+ char *systype = get_systype();
printf("%s (OpenRC", applet);
- systype = detect_container();
- if (!systype)
- systype = detect_vm();
if (systype)
printf(" [%s]", systype);
printf(") %s", VERSION);