summaryrefslogtreecommitdiff
path: root/src/shared/virt.h
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-02-23 22:05:18 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-24 13:26:44 +0100
commit248fab742d2b61557de93ac6e422986a8858bf52 (patch)
tree3d7fd35295b3bb7d5203733fdab221ae5e223686 /src/shared/virt.h
parentf8901862b2b030921b3d5aba4157044ceab16451 (diff)
virt: make Virtualization an anonymous enum
This makes llvm happy when we assign an error code to the variable.
Diffstat (limited to 'src/shared/virt.h')
-rw-r--r--src/shared/virt.h6
1 files changed, 3 insertions, 3 deletions
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);