[Pkg-libvirt-commits] [SCM] Libguestfs Debian packaging branch, experimental, updated. debian/1%1.21.40-1
Richard W.M. Jones
rjones at redhat.com
Sat Jun 1 11:04:34 UTC 2013
The following commit has been merged in the experimental branch:
commit 97274c7f7548284697e4af088fb379e27f0393ef
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Wed May 8 11:44:36 2013 +0100
src/libvirt-domain.c: Cast constant strings to avoid warning about signedness.
diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
index e56a98e..7d3db31 100644
--- a/src/libvirt-domain.c
+++ b/src/libvirt-domain.c
@@ -552,9 +552,9 @@ for_each_disk (guestfs_h *g,
xmlNodePtr h = xphost->nodesetval->nodeTab[hi];
assert (h);
assert (h->type == XML_ELEMENT_NODE);
- name = xmlGetProp(h, "name");
+ name = xmlGetProp(h, BAD_CAST "name");
assert(name);
- port = xmlGetProp(h, "port");
+ port = xmlGetProp(h, BAD_CAST "port");
assert(port);
debug(g, _("disk[%zu]: host: %s:%s"), i, name, port);
if (asprintf(&server[hi], "%s:%s", name, port) == -1) {
--
Libguestfs Debian packaging
More information about the Pkg-libvirt-commits
mailing list