The type of this parameter is virCPUType so calling it 'mode' is pretty
strange, 'type' is a much better name.
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
virCPUDefPtr
virCPUDefParseXML(xmlNodePtr node,
xmlXPathContextPtr ctxt,
- virCPUType mode)
+ virCPUType type)
{
virCPUDefPtr def;
xmlNodePtr *nodes = NULL;
if (VIR_ALLOC(def) < 0)
return NULL;
- if (mode == VIR_CPU_TYPE_AUTO) {
+ if (type == VIR_CPU_TYPE_AUTO) {
if (virXPathBoolean("boolean(./arch)", ctxt)) {
if (virXPathBoolean("boolean(./@match)", ctxt)) {
virReportError(VIR_ERR_XML_ERROR, "%s",
def->type = VIR_CPU_TYPE_GUEST;
}
} else {
- def->type = mode;
+ def->type = type;
}
if ((cpuMode = virXMLPropString(node, "mode"))) {