提交 7ae5999f 编写于 作者: O Osier Yang

storage_conf: Remove the useless casting

上级 61c62273
...@@ -672,7 +672,7 @@ virStoragePoolDefParseSource(xmlXPathContextPtr ctxt, ...@@ -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) ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册