summaryrefslogtreecommitdiff
path: root/src/cpu/cpu_x86.c
diff options
context:
space:
mode:
authorJulio Faracco <jcfaracco@gmail.com>2014-04-27 21:15:21 -0300
committerEric Blake <eblake@redhat.com>2014-05-05 15:52:36 -0600
commit00ee955d0835243e663566e6b901350b0072b82f (patch)
tree17860b4b4e7ea1dc61d54658aa3698726ecfd60b /src/cpu/cpu_x86.c
parent1b14c449b8849efda8fbb5784571ac3fa90d7d5b (diff)
downloadlibvirt-00ee955d0835243e663566e6b901350b0072b82f.tar.gz
conf: use typedefs for enums in "src/conf/cpu_conf.h"
In "src/conf/" there are many enumeration (enum) declarations. Similar to the recent cleanup to "src/util" directory, it's better to use a typedef for variable types, function types and other usages. Other enumeration and folders will be changed to typedef's in the future. Most of the files changed in this commit are related to CPU (cpu_conf) enums. Signed-off-by: Julio Faracco <jcfaracco@gmail.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'src/cpu/cpu_x86.c')
-rw-r--r--src/cpu/cpu_x86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
index 73285821fc..06fbfba7b5 100644
--- a/src/cpu/cpu_x86.c
+++ b/src/cpu/cpu_x86.c
@@ -1615,7 +1615,7 @@ x86DecodeCPUData(virCPUDefPtr cpu,
static virCPUx86Data *
x86EncodePolicy(const virCPUDef *cpu,
const struct x86_map *map,
- enum virCPUFeaturePolicy policy)
+ virCPUFeaturePolicy policy)
{
struct x86_model *model;
virCPUx86Data *data = NULL;
@@ -2045,7 +2045,7 @@ static int
x86Update(virCPUDefPtr guest,
const virCPUDef *host)
{
- switch ((enum virCPUMode) guest->mode) {
+ switch ((virCPUMode) guest->mode) {
case VIR_CPU_MODE_CUSTOM:
return x86UpdateCustom(guest, host);