]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage_conf: Remove the useless casting
authorOsier Yang <jyang@redhat.com>
Wed, 22 May 2013 12:05:13 +0000 (20:05 +0800)
committerOsier Yang <jyang@redhat.com>
Fri, 24 May 2013 14:33:35 +0000 (22:33 +0800)
src/conf/storage_conf.c

index d8c7282a4cede704bca5431903332f9ab2236cb9..215ce847288a05610c156ffb255f169647a3caa0 100644 (file)
@@ -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;
     }