]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: minor build fixes for BSD
authorEric Blake <eblake@redhat.com>
Fri, 14 Dec 2012 19:02:10 +0000 (12:02 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 14 Dec 2012 19:14:52 +0000 (12:14 -0700)
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.

src/qemu/qemu_driver.c
src/qemu/qemu_monitor.c

index 6f0849cf4ecae7500d71e765f713f733b13153c0..2dd6922956ba93b02b3a614df052acefeaf5ba17 100644 (file)
@@ -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)
 {
index 5ad6c15ab3a2dabba4df31fe16bfb9fc8bf27056..131e8df358d2edc3f273da7b9c607d7d7bed63a7 100644 (file)
@@ -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;