aboutsummaryrefslogtreecommitdiff
path: root/src/rc/_usage.c
diff options
context:
space:
mode:
authorDoug Freed <dwfreed@mtu.edu>2016-01-17 21:43:46 -0800
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-01-19 00:09:20 -0600
commit649f63d882d53533ae8b1c3b28967e772e738c45 (patch)
tree3da01483f3fd5da6190116ecf4862f291bb7b1be /src/rc/_usage.c
parent55a28f5d2524615560698453a5a6afd50460030c (diff)
librc: move system detection code into rc_sys and use it
This fixes an issue where librc code was calling code that only existed in the rc binary. This reverts commits 8addd79 and 9f6e056 This fixes #75.
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..0d3d5edd 100644
--- a/src/rc/_usage.c
+++ b/src/rc/_usage.c
@@ -47,10 +47,7 @@ _noreturn void show_version(void)
const char *systype = NULL;
printf("%s (OpenRC", applet);
- systype = detect_container();
- if (!systype)
- systype = detect_vm();
- if (systype)
+ if ((systype = rc_sys()))
printf(" [%s]", systype);
printf(") %s", VERSION);
#ifdef BRANDING