Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/conf/domain_conf.c | 2 +-
src/conf/domain_conf.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 4dad8e3b20..0dc1c3a276 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -1852,7 +1852,7 @@ virDomainDiskEmptySource(virDomainDiskDefPtr def)
const char *
-virDomainDiskGetDriver(virDomainDiskDefPtr def)
+virDomainDiskGetDriver(const virDomainDiskDef *def)
{
return def->src->driverName;
}
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index bbaa24137d..3a3ec6f6c3 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -2763,7 +2763,7 @@ const char *virDomainDiskGetSource(virDomainDiskDef const *def);
int virDomainDiskSetSource(virDomainDiskDefPtr def, const char *src)
ATTRIBUTE_RETURN_CHECK;
void virDomainDiskEmptySource(virDomainDiskDefPtr def);
-const char *virDomainDiskGetDriver(virDomainDiskDefPtr def);
+const char *virDomainDiskGetDriver(const virDomainDiskDef *def);
int virDomainDiskSetDriver(virDomainDiskDefPtr def, const char *name)
ATTRIBUTE_RETURN_CHECK;
int virDomainDiskGetFormat(virDomainDiskDefPtr def);
--
2.16.2