[Libvirt-cim] [PATCH] xmlgen: fix build issue

Pavel Hrdina phrdina at redhat.com
Wed May 7 10:52:15 UTC 2014


Function controller_protocol_type_IDToStr() returns a const char
and we should abide that.

Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---
 libxkutil/xmlgen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libxkutil/xmlgen.c b/libxkutil/xmlgen.c
index 3174ca9..a9a672d 100644
--- a/libxkutil/xmlgen.c
+++ b/libxkutil/xmlgen.c
@@ -807,7 +807,7 @@ static const char *controller_xml(xmlNodePtr root, struct domain *dominfo)
         for (i = 0; i < dominfo->dev_controller_ct; i++) {
                 xmlNodePtr ctlr;
                 xmlNodePtr tmp;
-                char *type_str;
+                const char *type_str;
 
                 struct virt_device *_dev = &dominfo->dev_controller[i];
                 if (_dev->type == CIM_RES_TYPE_UNKNOWN)
-- 
1.8.3.2




More information about the Libvirt-cim mailing list