[systemd-commits] src/shared
Zbigniew JÄdrzejewski-Szmek
zbyszek at kemper.freedesktop.org
Sat Jul 20 18:34:54 PDT 2013
src/shared/virt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 3c475ce44e6b3b5bd6b22cff11a1322dabd95ba0
Author: Shawn Landden <shawnlandden at gmail.com>
Date: Sat Jul 20 10:15:13 2013 -0700
shared: fix build on !x86
diff --git a/src/shared/virt.c b/src/shared/virt.c
index 1abd686..4f8134a 100644
--- a/src/shared/virt.c
+++ b/src/shared/virt.c
@@ -29,6 +29,8 @@
/* Returns a short identifier for the various VM implementations */
int detect_vm(const char **id) {
+ _cleanup_free_ char *cpuinfo_contents = NULL;
+ int r;
#if defined(__i386__) || defined(__x86_64__)
@@ -67,8 +69,6 @@ int detect_vm(const char **id) {
const char *j, *k;
bool hypervisor;
_cleanup_free_ char *hvtype = NULL;
- _cleanup_free_ char *cpuinfo_contents = NULL;
- int r;
/* Try high-level hypervisor sysfs file first:
*
More information about the systemd-commits
mailing list