提交 0107578c 编写于 作者: D Daniel P. Berrange

Fix two format string warnings on 32bit hosts

上级 0ae26314
Fri Oct 10 13:30:00 BST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/xml.c, src/xen_internal.c: Cast some args to unsigned
long to avoid printf format specifier warnings on 32-bit
Fri Oct 10 12:30:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
Updated MinGW spec file.
......
......@@ -1927,7 +1927,8 @@ xenHypervisorInit(void)
*/
hypervisor_version = -1;
virXenError(NULL, VIR_ERR_XEN_CALL, " ioctl %lu", IOCTL_PRIVCMD_HYPERCALL);
virXenError(NULL, VIR_ERR_XEN_CALL, " ioctl %lu",
(unsigned long) IOCTL_PRIVCMD_HYPERCALL);
close(fd);
in_init = 0;
return(-1);
......@@ -2004,7 +2005,8 @@ xenHypervisorInit(void)
DEBUG0("Failed to find any Xen hypervisor method\n");
hypervisor_version = -1;
virXenError(NULL, VIR_ERR_XEN_CALL, " ioctl %lu", IOCTL_PRIVCMD_HYPERCALL);
virXenError(NULL, VIR_ERR_XEN_CALL, " ioctl %lu",
(unsigned long)IOCTL_PRIVCMD_HYPERCALL);
close(fd);
in_init = 0;
VIR_FREE(ipt);
......
......@@ -351,7 +351,7 @@ virXPathNodeSet(virConnectPtr conn,
if (VIR_ALLOC_N(*list, ret) < 0) {
virXMLError(conn, VIR_ERR_NO_MEMORY,
_("allocate string array size %lu"),
ret * sizeof(**list));
(unsigned long)ret * sizeof(**list));
ret = -1;
} else {
memcpy(*list, obj->nodesetval->nodeTab,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册