From 7ae5999fa36b6c3bf86ed13ca93d3ed1a3dd2ec7 Mon Sep 17 00:00:00 2001 From: Osier Yang Date: Wed, 22 May 2013 20:05:13 +0800 Subject: [PATCH] storage_conf: Remove the useless casting --- src/conf/storage_conf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c index d8c7282a4..215ce8472 100644 --- a/src/conf/storage_conf.c +++ b/src/conf/storage_conf.c @@ -672,7 +672,7 @@ virStoragePoolDefParseSource(xmlXPathContextPtr ctxt, } else { virReportError(VIR_ERR_XML_ERROR, _("unknown auth type '%s'"), - (const char *)authType); + authType); goto cleanup; } } @@ -828,9 +828,9 @@ virStoragePoolDefParseXML(xmlXPathContextPtr 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, - _("unknown storage pool type %s"), (const char*)type); + _("unknown storage pool type %s"), type); goto cleanup; } -- 2.39.5