mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
storage_conf: Remove the useless casting
This commit is contained in:
parent
61c6227341
commit
7ae5999fa3
@ -672,7 +672,7 @@ virStoragePoolDefParseSource(xmlXPathContextPtr ctxt,
|
|||||||
} else {
|
} else {
|
||||||
virReportError(VIR_ERR_XML_ERROR,
|
virReportError(VIR_ERR_XML_ERROR,
|
||||||
_("unknown auth type '%s'"),
|
_("unknown auth type '%s'"),
|
||||||
(const char *)authType);
|
authType);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -828,9 +828,9 @@ virStoragePoolDefParseXML(xmlXPathContextPtr ctxt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
type = virXPathString("string(./@type)", ctxt);
|
type = virXPathString("string(./@type)", ctxt);
|
||||||
if ((ret->type = virStoragePoolTypeFromString((const char *)type)) < 0) {
|
if ((ret->type = virStoragePoolTypeFromString(type)) < 0) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("unknown storage pool type %s"), (const char*)type);
|
_("unknown storage pool type %s"), type);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user