[PATCH] xmlgen: fix build issue

Function controller_protocol_type_IDToStr() returns a const char and we should abide that. Signed-off-by: Pavel Hrdina <phrdina@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

On 05/07/2014 06:52 AM, Pavel Hrdina wrote:
Function controller_protocol_type_IDToStr() returns a const char and we should abide that.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> --- libxkutil/xmlgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ACK and pushed. Sorry about that. John
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)
participants (2)
-
John Ferlan
-
Pavel Hrdina