summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/condition-util.c3
-rw-r--r--src/shared/virt.c2
-rw-r--r--src/shared/virt.h6
3 files changed, 5 insertions, 6 deletions
diff --git a/src/shared/condition-util.c b/src/shared/condition-util.c
index 4aea3caf9d..9961cb47f0 100644
--- a/src/shared/condition-util.c
+++ b/src/shared/condition-util.c
@@ -121,8 +121,7 @@ bool condition_test_kernel_command_line(Condition *c) {
}
bool condition_test_virtualization(Condition *c) {
- int b;
- Virtualization v;
+ int b, v;
const char *id;
assert(c);
diff --git a/src/shared/virt.c b/src/shared/virt.c
index c79d35db4d..ec2ddcfe67 100644
--- a/src/shared/virt.c
+++ b/src/shared/virt.c
@@ -278,7 +278,7 @@ finish:
}
/* Returns a short identifier for the various VM/container implementations */
-Virtualization detect_virtualization(const char **id) {
+int detect_virtualization(const char **id) {
int r;
r = detect_container(id);
diff --git a/src/shared/virt.h b/src/shared/virt.h
index aa6ad35ba9..7194ab2bf7 100644
--- a/src/shared/virt.h
+++ b/src/shared/virt.h
@@ -24,12 +24,12 @@
int detect_vm(const char **id);
int detect_container(const char **id);
-typedef enum Virtualization {
+enum {
VIRTUALIZATION_NONE = 0,
VIRTUALIZATION_VM,
VIRTUALIZATION_CONTAINER,
_VIRTUALIZATION_MAX,
_VIRTUALIZATION_INVALID = -1
-} Virtualization;
+};
-Virtualization detect_virtualization(const char **id);
+int detect_virtualization(const char **id);