Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/conf/domain_conf.c | 2 +-
src/conf/domain_conf.h | 2 +-
src/qemu/qemu_validate.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 6b89b9404c..b6d22a1a1d 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -4165,7 +4165,7 @@ virDomainObjGetOneDef(virDomainObj *vm,
}
virDomainDeviceInfo *
-virDomainDeviceGetInfo(virDomainDeviceDef *device)
+virDomainDeviceGetInfo(const virDomainDeviceDef *device)
{
switch ((virDomainDeviceType) device->type) {
case VIR_DOMAIN_DEVICE_DISK:
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index c23c233184..4b6afe95bb 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -3332,7 +3332,7 @@ virDomainDeviceDef *virDomainDeviceDefCopy(virDomainDeviceDef *src,
const virDomainDef *def,
virDomainXMLOption *xmlopt,
void *parseOpaque);
-virDomainDeviceInfo *virDomainDeviceGetInfo(virDomainDeviceDef *device);
+virDomainDeviceInfo *virDomainDeviceGetInfo(const virDomainDeviceDef *device);
void virDomainDeviceSetData(virDomainDeviceDef *device,
void *devicedata);
void virDomainTPMDefFree(virDomainTPMDef *def);
diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c
index 8a779f24c7..e120f3385f 100644
--- a/src/qemu/qemu_validate.c
+++ b/src/qemu/qemu_validate.c
@@ -1304,7 +1304,7 @@ qemuValidateDomainDeviceDefAddress(const virDomainDeviceDef *dev,
{
virDomainDeviceInfo *info;
- if (!(info = virDomainDeviceGetInfo((virDomainDeviceDef *)dev)))
+ if (!(info = virDomainDeviceGetInfo(dev)))
return 0;
switch ((virDomainDeviceAddressType) info->type) {
--
2.31.1