mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
Fix two format string warnings on 32bit hosts
This commit is contained in:
parent
0ae26314b3
commit
0107578c5e
@ -1,3 +1,8 @@
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user