conf: Make argument of virDomainDiskGetDriver const

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Peter Krempa 2018-04-10 16:41:54 +02:00
parent 71872d8224
commit 97a467b3c4
2 changed files with 2 additions and 2 deletions

View File

@ -1846,7 +1846,7 @@ virDomainDiskEmptySource(virDomainDiskDefPtr def)
const char *
virDomainDiskGetDriver(virDomainDiskDefPtr def)
virDomainDiskGetDriver(const virDomainDiskDef *def)
{
return def->src->driverName;
}

View File

@ -2765,7 +2765,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);