[libvirt PATCH v2 03/22] qemu: Make qemuBuildDeviceAddressProps() const correct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 src/qemu/qemu_command.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 1084f5acc7..035943fa96 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -359,7 +359,7 @@ qemuVirCommandGetDevSet(virCommand *cmd, int fd)
 
 static char *
 qemuBuildDeviceAddressPCIGetBus(const virDomainDef *domainDef,
-                                virDomainDeviceInfo *info)
+                                const virDomainDeviceInfo *info)
 {
     g_autofree char *devStr = NULL;
     const char *contAlias = NULL;
@@ -427,7 +427,7 @@ qemuBuildDeviceAddressPCIGetBus(const virDomainDef *domainDef,
 static int
 qemuBuildDeviceAddresDriveProps(virJSONValue *props,
                                 const virDomainDef *domainDef,
-                                virDomainDeviceInfo *info)
+                                const virDomainDeviceInfo *info)
 {
     g_autofree char *bus = NULL;
     virDomainControllerDef *controller = NULL;
@@ -563,7 +563,7 @@ qemuBuildDeviceAddresDriveProps(virJSONValue *props,
 static int
 qemuBuildDeviceAddressProps(virJSONValue *props,
                             const virDomainDef *domainDef,
-                            virDomainDeviceInfo *info)
+                            const virDomainDeviceInfo *info)
 {
     switch ((virDomainDeviceAddressType) info->type) {
     case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI: {
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux