c1c534
From 2e7743888fda6297e07527370c1d4c4b45217962 Mon Sep 17 00:00:00 2001
c1c534
Message-Id: <2e7743888fda6297e07527370c1d4c4b45217962@dist-git>
c1c534
From: Michal Privoznik <mprivozn@redhat.com>
c1c534
Date: Mon, 20 Nov 2017 11:08:52 +0100
c1c534
Subject: [PATCH] virQEMUCapsHasPCIMultiBus: Fix @def type
c1c534
c1c534
https://bugzilla.redhat.com/show_bug.cgi?id=1434451
c1c534
c1c534
This function only queries domain @def. It doesn't change it.
c1c534
Therefore it should take const pointer.
c1c534
c1c534
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
c1c534
(cherry picked from commit 481f8fdca1528f1398ef458b7c37ba57ea55dc68)
c1c534
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
c1c534
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c1c534
---
c1c534
 src/qemu/qemu_capabilities.c | 2 +-
c1c534
 src/qemu/qemu_capabilities.h | 2 +-
c1c534
 2 files changed, 2 insertions(+), 2 deletions(-)
c1c534
c1c534
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
c1c534
index 3793f16590..f30d2fa09e 100644
c1c534
--- a/src/qemu/qemu_capabilities.c
c1c534
+++ b/src/qemu/qemu_capabilities.c
c1c534
@@ -2391,7 +2391,7 @@ virQEMUCapsGet(virQEMUCapsPtr qemuCaps,
c1c534
 
c1c534
 
c1c534
 bool virQEMUCapsHasPCIMultiBus(virQEMUCapsPtr qemuCaps,
c1c534
-                               virDomainDefPtr def)
c1c534
+                               const virDomainDef *def)
c1c534
 {
c1c534
     /* x86_64 and i686 support PCI-multibus on all machine types
c1c534
      * since forever */
c1c534
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
c1c534
index f0e2e9016f..e7d766f801 100644
c1c534
--- a/src/qemu/qemu_capabilities.h
c1c534
+++ b/src/qemu/qemu_capabilities.h
c1c534
@@ -451,7 +451,7 @@ bool virQEMUCapsGet(virQEMUCapsPtr qemuCaps,
c1c534
                     virQEMUCapsFlags flag);
c1c534
 
c1c534
 bool virQEMUCapsHasPCIMultiBus(virQEMUCapsPtr qemuCaps,
c1c534
-                               virDomainDefPtr def);
c1c534
+                               const virDomainDef *def);
c1c534
 
c1c534
 bool virQEMUCapsSupportsVmport(virQEMUCapsPtr qemuCaps,
c1c534
                                const virDomainDef *def);
c1c534
-- 
c1c534
2.15.0
c1c534