diff options
author | Eric Blake <eblake@redhat.com> | 2012-12-14 12:02:10 -0700 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2012-12-14 12:14:52 -0700 |
commit | 70743daeecab01e98f09ed3a16d8652d07e4d747 (patch) | |
tree | a745b7fcc002c289778c8664a00ecc600477853b | |
parent | 0c94357f9d1dbf36145ab50dc01db0876ee218c8 (diff) | |
download | libvirt-70743daeecab01e98f09ed3a16d8652d07e4d747.tar.gz |
build: minor build fixes for BSD
Noticed these while building on FreeBSD.
* src/qemu/qemu_monitor.c (qemuMonitorBlockInfoLookup): Rename
variable to avoid 'devname' collision.
* src/qemu/qemu_driver.c (qemuDomainInterfaceStats): Mark unused
variable.
-rw-r--r-- | src/qemu/qemu_driver.c | 2 | ||||
-rw-r--r-- | src/qemu/qemu_monitor.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 6f0849cf4e..2dd6922956 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -8898,7 +8898,7 @@ cleanup: } #else static int -qemuDomainInterfaceStats(virDomainPtr dom, +qemuDomainInterfaceStats(virDomainPtr dom ATTRIBUTE_UNUSED, const char *path ATTRIBUTE_UNUSED, struct _virDomainInterfaceStats *stats ATTRIBUTE_UNUSED) { diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index 5ad6c15ab3..131e8df358 100644 --- a/src/qemu/qemu_monitor.c +++ b/src/qemu/qemu_monitor.c @@ -1428,16 +1428,16 @@ qemuMonitorGetBlockInfo(qemuMonitorPtr mon) struct qemuDomainDiskInfo * qemuMonitorBlockInfoLookup(virHashTablePtr blockInfo, - const char *devname) + const char *dev) { struct qemuDomainDiskInfo *info; - VIR_DEBUG("blockInfo=%p dev=%s", blockInfo, NULLSTR(devname)); + VIR_DEBUG("blockInfo=%p dev=%s", blockInfo, NULLSTR(dev)); - if (!(info = virHashLookup(blockInfo, devname))) { + if (!(info = virHashLookup(blockInfo, dev))) { virReportError(VIR_ERR_INTERNAL_ERROR, _("cannot find info for device '%s'"), - NULLSTR(devname)); + NULLSTR(dev)); } return info; |